3 ms·
I thought I’d heard that Java VMs go to great lengths to maintain cache coherence? I’d be curious to hear from the Lisp folks because I always hear that Lisps c
by throwaway894345 5y ago
I thought I’d heard that Java VMs go to great lengths to maintain cache coherence? I’d be curious to hear from the Lisp folks because I always hear that Lisps can be surprisingly performant.
- staticassertion 5y agoThere are some optimizations in the JVM that will improve cache coherence. Bump allocation helps, inlining and escape analysis help, etc. In theory the GC can also rearrange memory to 'compact' it. I'm not aware of this optimization in practice.
- throwaway894345 5y agoAs far as I know, all mainstream Java GCs are compacting; however, I don’t have an idea about the degree this improves cache coherence.