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
- Chunks of Bytecode · Crafting Interpreterscraftinginterpreters.com
- Introduction · Crafting Interpreterscraftinginterpreters.com
- abseil / Performance Hintsabseil.io
- Scanning · Crafting Interpreterscraftinginterpreters.com
- Control Flow · Crafting Interpreterscraftinginterpreters.com
- A Gentle Introduction to LLVM IR · mcyoungmcyoung.xyz
- Effortless Performance Improvements in C++ | Julien Jorge's Personal Websitejulien.jorge.st
- Parsing Expressions · Crafting Interpreterscraftinginterpreters.com
- Evaluating Expressions · Crafting Interpreterscraftinginterpreters.com
- Competitive Programmer's Handbookcses.fi
- The Lox Language · Crafting Interpreterscraftinginterpreters.com
- Optimization of Computer Programs in Cicps.u-strasbg.fr