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
Post a Comment