Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: HashMap vs Berkely DB
11-10-2008, 06:11 PM #1
- Join Date
- Nov 2008
- Thanked 0 Times in 0 Posts
HashMap vs Berkely DB
I am using a HashMap<String, String> to store lots of entries. For example, each entry will cost less 700 bytes so that storing 600,000 entries will take about 400,000 kilobytes memory, fair enough. But I wonder Berkel DB will use less memory and faster with this much of data. Any input will help!
11-16-2008, 03:35 PM #2
its hard to guess without any concreted data. the best course to take would be to profile both the hashmap and bdb solution and pick the one that performs best. let us know how it goes though
You never have to change anything you got up in the middle of the night to write. -- Saul Bellow