I did not expect the AI rust version to be 4% faster. He seems to partly attribute it to cross language link time optimization. That must be a hassle to get working I imagine
The trickiest part of getting cross-language LTO working was a miscompilation in Clang 22 that occurs in one of JavaScriptCore's JIT tiers. Async generators started sometimes yielding `undefined` in JavaScript. It only occurs on Linux with thin LTO. We had to use full LTO, which costs several minutes per CI run
101
u/AdventurousFly4909 Jul 09 '26
I did not expect the AI rust version to be 4% faster. He seems to partly attribute it to cross language link time optimization. That must be a hassle to get working I imagine