Optimization · Crafting Interpreters
The evening’s the best part of the day. You’ve done your day’s work. Now you can put your feet up and enjoy it. Kazuo Ishiguro, The Remains of the Day If I still lived in New Orleans, I’d call this chapter a lagniappe, a little something extra given for free to a customer. You’ve got a whole book and a complete virtual machine already, but I want you to have some more fun hacking on clox. This time, we’re going for pure performance. We’ll apply two very different optimizations to our virtual machine. In the process, you’ll get a feel for measuring and improving the performance of a language implementation—or any program, really. Optimization means taking a working application and improving its performance. An optimized program does the same thing, it just takes less resources to do so. The resource we usually think of when optimizing is runtime speed, but it can also be important to reduce memory usage, startup time, persistent storage size, or network bandwidth. All physical resources
30 Optimization The evening's the best part of the day. You've done your day's work. Now you can put your feet up and enjoy it. Kazuo Ishiguro, The Remains of the Day If I still lived in New Orleans, I'd call this chapter a lagniappe , a little something extra given for free to a customer. You've got a whole book and a complete virtual machine already, but I want you to have some more fun hacking on clox. This time, we're going for pure performance. We'll apply two very different optimizations to our virtual machine. In the process, you'll get a feel for measuring and improving the performance
related reading
- abseil / Performance Hintsabseil.io
- Algorithms for Modern Hardware - Algorithmicaen.algorithmica.org
- abseil / Performance Hintsabseil.io
- Paul Buchheit: Optimizing everything: some details matter a lot, most don'tpaulbuchheit.blogspot.com
- From hand-tuned Go to self-optimizing code: Building BitsEvolve | Datadogdatadoghq.com
- Chunks of Bytecode · Crafting Interpreterscraftinginterpreters.com
- Optimization of Computer Programs in Cicps.u-strasbg.fr
- (Re)writing an interpreter in Rust – Danny van Kootendannyvankooten.com
- Rust Optimization.md · GitHubgist.github.com
- There's no reason for software to be slow anymoredanluu.com
- Introduction · Crafting Interpreterscraftinginterpreters.com
- The compiler will optimize that away | RoyalSlothblog.royalsloth.eu