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
Explore this link on the map →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
- (Re)writing an interpreter in Rust – Danny van Kootendannyvankooten.com
- Optimization of Computer Programs in Cicps.u-strasbg.fr
- Rust Optimization.md · GitHubgist.github.com
- The compiler will optimize that away | RoyalSlothblog.royalsloth.eu
- Michael Abrash's Graphics Programming Black Book Special Edition: Table of Contentsphatcode.net
- Compilers - What Every Programmer Should Know About Compiler Optimizations | Microsoft Learnlearn.microsoft.com