Y
Hacker News
new
|
ask
|
show
|
jobs
by
spockz
98 days ago
So now the result of `new HashMap<>()` should be backed by an array for the first 200 elements or so? Potentially the size depending on the L1 size etc.
1 comments
inigyou
98 days ago
Not in Java, because a linear search map in Java means traversing over 100 (on average) pointers.
link
spockz
98 days ago
Right, but not once these records/structs/value types arrive anymore I gather.
Does this also mean we need to worry about word aligning our fields?? What about strings?
link