Articles on Optimization

Last updated: 2022/08/23

Top deep-dives on Optimization

Low Hanging Fruits in Frontend Performance 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.

You (Probably) Shouldn't use a Lookup Table

Nima Badizadegan explains how CPU caches affect the performance of lookup tables of different sizes, then demonstrates it practically with examples.

Making Reasonable Use of Computer Resources: Part 2

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.

The Speed of Time

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.

Visualizing Performance-Critical Dependency Chains.

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.

Scaling Causal's Spreadsheet Engine from Thousands to Billions of Cells: From Maps to Arrays

Simon Hørup Eskildsen explains the optimization process for a Go program when you've exhausted easy problems found with profiling.

Why Train When You Can Optimize?

Justin Meiners illuminates the wonderful world of optimization by implementing a drawing assistant in JavaScript that'll help you draw straight lines, circles, and squares on a canvas.

Technology Deep Dive: Building a Faster ORAM Layer for Enclaves

Graeme Connell discusses how Signal updated its enclaves to use ORAM for better performance and obscurity.


Want to see more in-depth content?

subscribe to my newsletter!

Other Articles