by vardump · 12mo ago · 0 comments
This is one of the remaining cases where the current compilers optimize rather poorly: when you have a tight loop around a huge switch-statement, with each case-statement performing a very small operation on common data.
In that case, a human writing assembler can often beat a compiler with a huge margin.
https://blog.reverberate.org/2025/02/10/tail-call-updates.ht...