Spending too much time optimizing for loops
This is part of a series of blog posts relating my experience pushing the performance of programming language interpreters written in Rust.
Hasnain says:
“Aaaand the quick and easy solution is rarely quick or easy. This was never meant to be so arduous - this whole “let’s make a primitive function” idea was meant to take an hour tops to avoid spending a couple hours implementing it at the bytecode level, but it ended up taking much longer! I don’t think I could have easily predicted this seemingly easy change would be so hard: this requires a lot of knowledge about the system you’re working with and about interpreter design, yet I’m but a humble PhD student. We’re getting there though.”
Posted on 2024-07-13T20:49:56+0000