Vaccari's Code

The software no longer needs to be slow

11/26/2026

The other day, I came across a viral tweet suggesting that those who talked about LLMs (Large Language Models, a type of artificial intelligence that understands and generates text) causing slow and bloated code would eventually "eat their words" by rewriting everything in super-optimized Assembly. We're not exactly at the point of rewriting everything in Assembly (a low-level programming language, very close to the hardware), but the essence of what Nolan Lawson said about testing – "you can choose how many bugs you want to have now" – is becoming increasingly true for performance. The difference is that, today, this choice comes with a much lower barrier to entry.

The New Era of Performance Optimization

The cost of performance work, once highly specialized, has dropped dramatically. What once required a person or team with a rare skill set can now be done by "anyone who can type a few sentences" to an AI agent. This means that optimizations that were too expensive to be viable – except for large-scale or very profitable projects – are now within our reach.

Marc Brooker, in response to this observation, fully agreed: "Dynamic and personalized software, tailored to a particular workload rather than a class of workloads, seems a very likely outcome." He compared this idea to old "demoscene" techniques – super-fast and small programs designed for very specific problems and hardware, such as reusing code as textures to optimize cache locality (ensuring frequently accessed data is close in memory).

Michael Malis also complemented, noting that, while the maxim "code was never the hard part" is true in some domains, in others, writing the code was indeed the hard part. JIT (Just-In-Time, which translates code during program execution) compilers are an excellent example. Historically, implementing a JIT was so complex and expensive that it wasn't worth it for most software. With LLMs, this barrier to entry has been broken down, making it much easier to write a JIT compiler. This allows us to be more ambitious with the type of software we build, opening doors for innovations in areas like databases, which were previously extremely difficult to optimize.

Performance on Demand: Practical Examples

To illustrate this shift, the author of the reference material shared an experiment with FRE, a regular expression (regex engine) built by an AI agent. The agent spent a month optimizing FRE, resulting in a "super-optimized" engine for a specific benchmark. When alerted about a holdout benchmark, the agent generalized its optimizations, and FRE delivered "ok-ish" performance on this new set.

A notable characteristic of FRE was that the AOT (Ahead-Of-Time, i.e., compiled before execution to generate optimized native code) compiled version performed very well in longer searches. The idea tested was simple: run the native code compiler in a separate thread while ripgrep (a text search tool) executed its normal matcher, and then, when compilation finished, switch to the native code. For longer queries – which can take seconds or minutes – this resulted in a 2x to 4x performance improvement on some simple queries. For more complex and representative queries, the improvement was about 7%. It's not a revolutionary result, but it's impressive for "a few minutes of typing" for an AI codex.

Another example is the creation of a text index. If you are repeatedly searching for text on a computer, the obvious solution to speed this up is to create an index, not to optimize the regex engine. However, the central point is that this type of technical work, which previously required a lot of time and expertise, can now be done trivially. The author, who worked on BitFunnel (Bing's search index which won the Best Paper award at SIGIR), mentioned that projects with this level of optimization used to be gigantic undertakings. Today, the phrase "I could do this in a weekend" is becoming a reality for many such projects. AI not only facilitates code optimization but also enables the rapid construction of complex infrastructures that previously would take months or years.

Why This Matters

The democratization of performance optimization, driven by LLMs and AI agents, fundamentally changes the game for developers, tech leaders, and founders. It's no longer just about having the resources to hire expensive specialists, but about empowering teams to create highly specialized and efficient software for their specific workloads. This means faster products, enhanced user experiences, and the ability to innovate in areas previously considered prohibitively difficult. Performance has moved from being a luxury to becoming an achievable expectation, paving the way for a new generation of ambitious and tailored software.


Sources


📬 Enjoyed this? Subscribe to the Vaccari's Code newsletter for the next wave of software & AI trends, straight to your inbox: Subscribe here

← all posts · listen to the episode →