1 comment

[ 5.4 ms ] story [ 11.2 ms ] thread
I 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!