3 ms·
The Performance Effects of Virtual-Machine Instruction Pointer Updates [pdf]
- noelwelsh 2y agoI thought these quite simple optimizations had a surprisingly large effect. I tend to write a lot of interpreters, but usually in higher level languages. Lots of different things can be viewed as interpreters, but a familiar example would be a parser combinator library. When performance becomes a concern, tricks like this can be quite handy!