Java has lots of it, even crc32 has a similar loop.
Few years back I had to manually inspect the crc32 loop (due to gzip warnings) when it was used on unalign arrays. It was ok.
The JIT can't afford the runtime to do these kinds of fixed function optimizations, and isn't tuned to perform them well.
Even your C standard library has assembly language implementations of things like strlen because your AOT C compiler can't optimise these functions optimally
The JIT can't afford the runtime to do these kinds of fixed function optimizations, and isn't tuned to perform them well.
Even your C standard library has assembly language implementations of things like strlen because your AOT C compiler can't optimise these functions optimally