DIGNALEGI

The reading room · Digna Legi

There's no reason for software to be slow anymore

A personal relevance score

80–100: high value. 70–79: worth the time. Below 70: below the usual publication threshold.

Evidence-reviewed score based on available publisher text. Evidence is sampled, informal, and self-described as quick/non-rigorous, so claims should be treated as exploratory.

Scores reflect one reader’s profile, not an objective quality rating. Best is a separate personal selection.

How scoring works →

This brief · about 3 min with detail

Original article ↗

Why read this

AI agents may make performance optimization rational for narrow workloads by lowering the cost of generating and benchmarking many attempts.

AI brief · Checked against source text

The main idea

The central claim is not that agents magically produce optimal software, but that they collapse the human cost of trying and verifying many performance ideas. That changes which optimizations are rational: work once reserved for experts, such as just-in-time compilation or ahead-of-time native compilation, can become worth attempting for narrow workloads. The mechanism is cheap code generation plus benchmark loops, bounded by human setup for measurement and overfitting control.

Some background helpful. Basic comfort with software performance benchmarking and compiler terms, which the essay partly explains through examples.

Go a little deeper

Cost changes the engineering frontier

The useful shift is economic, not mystical. When the labor cost of a possible 2% improvement falls from days to minutes, the set of rational experiments expands. The author’s point is strongest for bounded performance work where correctness and speed can be measured repeatedly, not for open-ended design where agents lack judgment.

Workload-specific software becomes plausible

The essay distinguishes optimizing for a general class of users from optimizing for one real workload. Agents can cheaply specialize code against observed queries, then test against holdout data: data deliberately kept outside the optimization loop to detect overfitting. This enables dynamic custom software, but makes regime changes and stale data material risks.

Benchmarks are the real control surface

The author’s regex experiment shows why “just optimize it” is dangerous. FRE overfit the visible benchmark until the agent was warned about holdout benchmarks, after which it generalized better. The durable lesson is that agents amplify whatever measurement system they are given; poor tests create fast nonsense, while useful benchmarks make cheap iteration valuable.

Cheap implementation does not eliminate tradeoffs

The ripgrep native-code experiment illustrates a practical distinction. Ahead-of-time/native compilation means producing machine code before running the search, while just-in-time compilation produces code during execution. Compiling in another thread can help long searches, but may hurt short ones because compilation consumes resources before its payoff arrives.

A case from the article

Ripgrep native compilation

The author had an agent modify a regex engine so ripgrep could start with its normal matcher, compile native machine code in another thread, then switch over for longer searches. Simple long queries improved by 2x-4x, while representative holdout queries where the approach should apply improved about 7%. The case illustrates the essay’s sober version of the thesis: cheap experiments can make specialized optimization worthwhile even when the result is not dramatic.

How the case is made

The case is made through first-person experiments, benchmark observations, peer comments, and comparisons to prior performance-engineering work.

Where the idea has limits

The author repeatedly limits the claim: agents still need benchmark design, holdout data, and human judgment, and quick experiments can be more wrong than polished writeups.

A question to take away · from Digna Legi

Which expensive optimizations in your own work are expensive only because implementation and measurement used to be slow?

What the original adds

The original includes detailed ripgrep query distributions, regex examples, notes on indexing tradeoffs, and appendices explaining where agent-generated performance still fails.

About this brief

AI-written, then separately checked for source support, useful detail and clarity. The author’s claims and our editorial question are kept separate. The original remains the author’s work. How we select and summarise →

Digna legi. Worth reading.