Articles on Optimization
Last updated: 2022/08/23
Top deep-dives on Optimization
There are few things more frustrating than navigating to a webpage and having to wait over three seconds to be able to do anything. "Alex, you're just a spoiled brat too used to fast internet" you say. No dear reader, I'm just a professional who understands that there are ways for solving this if you're not a lazy dev. Paweł Urbanek has written an in depth article on the topic, not only providing a variety of different methods for testing, but also offering a bunch of specific tips for cutting down load times.
Nima Badizadegan explains how CPU caches affect the performance of lookup tables of different sizes, then demonstrates it practically with examples.
As you sit at your desk, scratching your head thinking about how you could shave a few seconds off of the function you just wrote, you hear a faint whisper in the wind, "premature optimization is the root of all evil". Well if your function takes days to run, it's definitely not premature. In this short article, the author describes the steps taken to optimize a JSON parsing script that originally took "more than a day to run", down to about 15 minutes using some clever shortcuts.
People have been obsessed with measuring time since its beginning; probably because we have so little of it! Philosophy aside, Brendan Gregg's article describes how he managed to fix a 30% increase in write latency for a Cassandra database cluster when switching from CentOS to Ubuntu, just by changing how the time is measured.
Denis Bakhvalov "prove[s] that critical data dependency chains are increasingly becoming the only thing that matters for performance of a general-purpose application", and then goes on to demonstrate how to find and display them all pretty like.
Simon Hørup Eskildsen explains the optimization process for a Go program when you've exhausted easy problems found with profiling.
Graeme Connell discusses how Signal updated its enclaves to use ORAM for better performance and obscurity.