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

Not in Java, because a linear search map in Java means traversing over 100 (on average) pointers.
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?