Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8542595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:06:24+00:00 2026-06-11T12:06:24+00:00

I am concerning that I am developing an application where I need to just

  • 0

I am concerning that I am developing an application where I need to just validate the data from the hashtables. I have 8 hash tables and I get the data from them and verify it. All 8 hashtables has the same structure. My question is if I put data in 8 hashtables would it be more efficient or if I change it in one hashtable? Each hashtable has around 100 objects.

Thanks in advance.

Yours,
Geek

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:06:26+00:00Added an answer on June 11, 2026 at 12:06 pm

    I agree that in this case the size is so small as to be insignificant.

    That said, use a single hash table; otherwise you’d have to do 8 checks to find something, and have the overhead of 8 hash table structures (which by definition have an overhead for the slots used to perform well).

    If you are using primitive types (or even just primitive types for keys in a map), I highly recommend the trove high performance collection library (GNU Trove). They are written for high performance computing, and in an environment like android can save you precious memory and compute cycles.

    They are not complete drop-in replacements, but have comparable functionality…e.g.

    TLongObjectHashMap<String> myMap; // a map from primitive long to strings 
    myMap = new TLongObjectHashMap<String>();
    myMap.put(4L, "Hello world"); // no boxing, so much less memory overhead, etc.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an application where it should get data from my server with
We're developing a data heavy modular web application stack with java but have little
I am busy developing a chrome extension. What it will do: Get data from
I'm developing a PHP application that uses FFMPEG-PHP to split videos and convert them
I have been developing an application that uses Models that are based on a
Concerning pages that build a web application: Lately, I have found myself creating web
I am developing a stand-alone java application which gathers data from around 1000 measuring
I need to know a couple of things, concerning IRC servers that I couldnt
i have multiple Elipse plugin projects that depend on each other. Several questions concerning
I have an application that I'm converting to Symfony/Doctrine. It currently stores a serialized

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.