logoalt Hacker News

xxs • today at 7:08 AM • 1 reply • view on HN

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.

String operations also contain instrinsics.


Replies

nly • today at 9:31 AM

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

➕ show 1 reply