Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Binary Search
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Wojtek, post: 4197895"] Leif Roar Moldskred wrote : I had a requirement to store over 3K Strings and to retrieve them in a random fashion. I used a HashSet. One day I had some free time, so I converted the HashSet to an array, then compared the results. The array was a faster lookup. In fact I calculated that if the application ran for a week I could save every week almost a full milli-second compared to the HashSet. YMMV [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Binary Search
Top