logoalt Hacker News

nly • today at 9:31 AM • 1 reply • view on HN

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


Replies

xxs • today at 3:00 PM

I don't understand the point.

Yes, JIT has lots of intrinsics.I had to inspect the crc32 loop (128bit vector instructions) as I expected to be faulty in some cases of unaligned data but it was fine.

I am very much aware where the assembly code for Hotspot is.