On Dec 1, 9:37 am, Christian Vest Hansen <[email protected]> wrote: > I don't think the bit-width of the types have much to do with it, > although it certainly do have an effect on how many elements fit in > the caches. > > As I understand things, a greater advantage comes from the fact that > same-typed keys and values can be kept in a single array. Searching a > single block of memory instead of two distinct blocks has potential > benefits from better pre-fetching and cache-locality. The hope is to > reduce two reads from main memory, to one read from memory and one > from cache.
Right, that was my point indeed. Best, Ismael -- You received this message because you are subscribed to the Google Groups "JVM Languages" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jvm-languages?hl=en.
