4 ms·
> They must be applications with extremely bad design causing super low cache hits. So basically any program written in a language with pointer types exclusive
by staticassertion 5y ago
> They must be applications with extremely bad design causing super low cache hits.
So basically any program written in a language with pointer types exclusively.
- throwaway894345 5y agoI 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.
- mda 5y agoEven then, today's cpus have enormous caches, and not all parts of program is pointers. you cant make a crappy application much faster just because you have faster ram.