Improving Shopify App’s Performance

- Talha Naqvi tl;dr: “At the beginning of 2023, we noticed that our app's performance had decreased since we started migrating to React Native. Recognizing this, we embarked on a dedicated journey to improve the app's performance by the end of the year... In this blog post, we’re sharing how we did it and hope others use it as inspiration to make their apps faster.”

featured in #515

How Web Bloat Impacts Users With Slow Devices

- Dan Luu tl;dr: “Modern pages that burn a ton of CPU when loading could be doing pre-work that means that later interactions on the page are faster and cheaper than on the pages that do less up-front work, but that's not the case for pages tested, which are slower to load initially, slower on subsequent loads, and slower after they've loaded.”

featured in #500

Behind The Draw - How Canva's Drawing Tool Works

- Alex Gemberg tl;dr: An exploration into the evolution of Canva's drawing tool, highlighting technical challenges to improve application performance and user satisfaction. Alex discusses efforts in optimizing SVG paths, implementing state machines, and introducing native implementations for mobile platforms. 

featured in #497

The World's Smallest PNG

- Evan Hahn tl;dr: This post describes this file in more detail and tries to explain how PNGs work along the way. The smallest PNG file has four sections: (1) The PNG signature, the same for every PNG: 8 bytes. (2) The image’s metadata, which includes its dimensions: 25 bytes. (3) The image’s pixel data: 22 bytes. (4) An “end of image” marker: 12 bytes.  

featured in #477

4 Billion If Statements

- Andreas Karlsson tl;dr: "So I went to work to explore this idea of checking if a number is odd or even by only using comparisons to see how well it works in a real world scenario. Since I’m a great believer in performant code I decided to implement this in the C programming language as it’s by far the fastest language on the planet to this day..."

featured in #476

Getting Started With Web Performance

- Alistair Shepherd tl;dr: "We’ll be diving into the river of load times and exploring what web performance is, why it’s important, how to measure it and finally my click-baity “Ten Wild Web Performance Tips! You’ll be saving number 5 for later!”. If you already know your CLS’ from your FCPs, lab from field data, and are well familiar with Lighthouses (not the ones with big lights) then you can jump straight to the tips."

featured in #476

Building A Faster Hash Table For High Performance SQL Joins

- Andrei Pechkurov tl;dr: Andrei delves into QuestDB’s unique hash table, FastMap, designed to enhance SQL execution for JOIN and GROUP BY operations. FastMap employs open addressing and linear probing, optimized for high performance in database environments. It supports variable-size keys and fixed-size values, facilitating efficient data handling and updates. Notably, FastMap operates off-heap, reducing garbage collection pressure to improve performance.

featured in #475

Parsing 8-Bit Integers Quickly

- Daniel Lemire tl;dr: Daniel discusses efficient methods for parsing 8-bit integers from ASCII / UTF-8 strings. The post begins by describing a basic C function for parsing 8-bit integers. This function checks if each character in the string is a digit and then calculates the integer value. It works well for strings with predictable lengths but can be inefficient when the length varies due to branch misprediction in the processor. The post also discusses an alternative version, which is presented as potentially faster under some compilers.

featured in #470

Analyzing Data 170,000x Faster With Python

- Sidney Radcliffe tl;dr: The article elaborates on the process of optimizing a function in Python. Sydney begins by explaining the initial challenges faced, such as slow performance and high memory usage. To address these issues, the article suggests using libraries like NumPy and Cython. Throughout the piece, the author provides code snippets to showcase the optimization steps. By the end, performance comparisons are presented, highlighting the significant improvements achieved through the optimization process.

featured in #461

Maxjourney: Pushing Dicord's Limits With A Million+ Online Users In A Single Server

- Yuliy Pisetsky tl;dr: "With that growth, those servers started slowing down and creeping ever closer to their throughput limits. As that’s happened, we’ve continued to find many improvements to keep making them faster and pushing the limits out further. In this post we’ll talk about some of the ways we’ve scaled individual Discord servers from tens of thousands of concurrent users to approaching two million concurrent users in the past few years."

featured in #460