java - Hash Table Size Setting -


do have know size of array hashtable prior creating array?

no, don't. quality implementation (hashtable/hashmap) resize automatically number of elements increases.

if talking own implementation, answer depends on whether hash table capable of increasing number of buckets size grows.

if worried performance implications of resizing, correct approach profile in context of overall application.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -