PK-Yadav / java-learning-pappuYadav

0 stars 0 forks source link

Doesn't need to eagerly allocate space. #14

Open the-bytecode opened 6 years ago

the-bytecode commented 6 years ago

https://github.com/PK-Yadav/java-learning-pappuYadav/blob/dd79e089f6df3b8fa70b39388871944d9a911299/multi-threading-task2/repeating-word-count/src/main/java/com/java/learning/task/multithreading/tasks/wordcount/WordCounter.java#L21

PK-Yadav commented 6 years ago

i have putted this allocate space keeping in mind that from various files there would be at least 2-3 hundred words min, as we have lots of file containing multiple words, and if we don't put this allocation space size then it will take lot of time to resizing the map.