Skip to content
← All posts

Tagged

Performance

22 posts

Engineering3 min read

The N+1 you cannot see

Everyone knows to eager load. The queries that actually take sites down are the ones hiding in an accessor, a Blade partial, or a policy. There is a one-line switch that finds all of them.

Engineering4 min read

Database indexes, explained with a phone book

Most slow queries are one index away from being fast. The reason people do not add it is that nobody ever explained what the index is actually doing.

ML for Web Devs4 min read

Running a model in the browser, and when that is a good idea

Transformers.js and WebGPU put real models on the client. The demo is easy; knowing which features belong there is the part worth thinking about.

Web4 min read

Web performance is a budget, not a sprint

Every performance sprint I have been on made the site fast for about four months. The teams whose sites stayed fast did something different, and it was not technical.

WordPress3 min read

WP_Query is fast until it is not

WordPress will happily let you write a query that scans a million meta rows. Here is which arguments are expensive, why, and what to do instead.

From The Wire

I am rewriting Coolify in Rust

coolify-rs is a project of mine: one Rust binary in place of Coolify’s PHP, Laravel, Horizon and Redis, serving the same REST API against the same Postgres database.

via GitHub

Hugging Face adds native PyTorch support for TPUs

TorchTPU, built by Google with Meta's PyTorch team, drops the torch_xla dependency so PyTorch code runs on TPUs unmodified. Hugging Face reports decoding up to 21.5 times faster on some models.

via Hugging Face