Reading up on performance
100 deep · digging since dec 05, 25
- References and Borrowing - The Rust Programming Language
The Rust compiler prevents data races and dangling pointers at compile time by enforcing that references cannot mutate borrowed data, that multiple mutable references to the same value cannot coexist, and that references must always be valid.
- https://x.com/javpixel_art/status/2125403467942654008/video/1 (via @threejs)
This post showcases a Three.js WebGL demo running smooth 60fps particle effects on a phone browser.
- Why I Switched to Vite+ — bencodezen
Vite+ unifies linting, formatting, testing, and other frontend tools into a single CLI, delivering up to 5.9x faster checks on a 97k-line codebase.
- Introducing harness adapters: adapt your favorite model to your harness to improve performance and cost
Hugging Face shows that training RL-based LoRA adapters for specific agent harnesses improves Qwen3.8-27B's pass@1 by 15-25 points while reducing token usage by 50-70% on coding benchmarks.
- Why Qwen3.8-27B Overthinks in Coding Tasks and How to Mitigate That
Qwen3.8-27B overthinks in coding tasks by recalling code from memory rather than reading it, but harness-level mitigations like a 2048-token thinking budget and action-forcing prompts boost SWE-bench resolution to 64% versus OpenCode's 52% in one-third the time.
- Migrating our Email API to Go
Resend moved its email API from Node.js to Go, achieving ~50% lower median latency and ~86% less memory per task while preserving exact behavioral compatibility.
- Kiri: a fast Docker Desktop alternative for Mac, Windows, Linux
Kiri is a fast Docker Desktop alternative using a single Rust daemon, claiming 8× faster container startup with sub-22ms docker run on Mac.
- Gemini 4 Neon | Hacker News
Gemini 4 enables statically compiled AWS Lambda functions to more efficiently process Neon's serverless Postgres connections, reducing cold-start latency.
- Do not buy RAM, compress!
Enabling zram or zswap on Linux compresses RAM to increase effective memory capacity, achieving compression ratios up to 1:4 with minimal CPU overhead.
- An updated Clairic and Clairic-flash are now open-weight, from the new Workers AI Superintelligence team
Cloudflare releases open-weight Clairic (27B) and Clairic-flash (9B) extraction models with improved PDF/image reading and sub-second latency.
- How OpenAI’s Performance Factory keeps ChatGPT fast
OpenAI built the Performance Factory, an autonomous system using Codex to find and fix ChatGPT performance regressions at scale.
- Throwing Headcount at the Problem
Replit tests show that solo AI agents often outperform swarms due to coordination overhead, but with independent workloads and flat organization, Opus 5.5 swarms achieved 18.9x speedups on NumPy versus 3.7x solo.
- Introducing the Cross-Origin Storage API | Blog
The Cross-Origin Storage API lets web apps share cached resources across origins using cryptographic hashes, reducing duplicate downloads of large assets like AI models and Wasm modules.
- How Long Does It Take to Get Out of Shape?
Cardiovascular fitness and muscle strength begin to decline after roughly two weeks of inactivity, with noticeable losses within two to four weeks.
- Qwen
Qwen4-Max scores 43 on Artificial Analysis, showing improved coding and agentic workflows over Qwen 3.8 but remains behind proprietary frontier models like Opus.
- Reading JSON at 277 GB/s in Python – Daniel Lemire's blog
Fastsimdjson, a threaded JSON parser for Python 3.14, reads structured data at up to 277 GB/s on 192 cores, outperforming orjson and msgspec.
- Reading JSON at 277 GB/s in Python – Daniel Lemire's blog
A new Python library called fastsimdjson parses JSON at 277 GB/s by combining memory mapping, field-selective parsing, and free-threaded execution to dramatically outperform standard libraries.
- A preview of Exact
Exact is a new Rust-based agent-native app framework featuring its own Contract language, outperforming both web and native frameworks on benchmarks while enabling agent-driven development.
- Six React chart libraries against hand-written SVG: what I found - DEV Community
Hand-written SVG and visx outperform most React chart libraries on mount time and bundle size, especially with large datasets, while TanStack Charts offers concise code.
- Libghostty 1.0 | Hacker News
Ghostty, a GPU-accelerated terminal emulator, released version 1.0 with performance improvements and cross-platform support.
- GitHub - ShayanAbbas1/dbdelve at console.dev
DBDelve is a fast, native, cross-platform database client written in Rust and GPUI that outperforms Electron/JVM-based clients in startup time, memory usage, and large-table scrolling.
- Subagents considered harmful?
Summary-based subagents lose context and cost more; forked subagents retain context but bloat; a new approach uses lightweight decision models to prune irrelevant history.
- MCP vs CLI vs Skills: What Each Costs in Context
MCP servers add tens of thousands of tokens per request compared to CLI or skill-based alternatives, but techniques like tool scoping, result trimming, and Tool Search can dramatically reduce costs.
- Don't Write Kernels, Derive Them
tang's tensor IR derives high-performance GPU and CPU kernels entirely through algebraic rewrites of two constructs (affine views and monoid comprehensions), matching or beating hand-tuned libraries on some workloads while trailing on others.
- Modern Web Guidance 1.0: The web platform expertise your coding agent is missing | Blog
Modern Web Guidance 1.0 provides AI coding agents with expert-vetted web platform skills, browser compatibility data, and a codebase modernization workflow to improve code quality.
- GitHub - paulirish/chrome-capture: 60-120fps / 2160p tab video/audio capture from Chrome
Chrome's native Page.startScreenRecording API enables high-fps, high-resolution tab recording directly to AV1 MP4 without ffmpeg, outperforming the old screencast pipeline.
- What is malloc doing, anyway?
A detailed walkthrough of how glibc's malloc works under the hood, building a toy allocator step-by-step to illustrate heap management, syscalls, fragmentation, and performance trade-offs.
- Private Mode for Terminal Visibility Reports
A new DEC private mode (2033) enables terminal visibility reports, allowing applications to reduce expensive rendering when their view is not visible.
- Inside GitHub's new Git storage architecture - The GitHub Blog
GitHub's new Git storage architecture, Project Rubicon, decouples object storage from reference state to support thousands of concurrent pushes per second on a single repository.
- What does LoRA specialized Muon optimizer even mean? - theblackcat102
Testing anpaure's Dimuon variant for LoRA finds it outperforms AdamW at all ranks, with feature-side conditioning as the active ingredient.
- How to Set Up Web Page Minification With VitePress
Installing HTML Minifier and adding a transformHtml block to VitePress config minifies HTML output while preserving Vue hydration comments.
- Just a moment...
A website's time to first post improved from 23.9 to 2.7 seconds, but commenters still consider it slow.
- four hundred bucks of e-waste / z1x.us
After buying a $400 Kapsys SmartVision3 phone for his visually impaired mother, the author deems it e-waste and builds a custom Android 16 ROM to fix lag, crashes, and poor battery life.
- How We Made clarity.js 4.5% Smaller Without Sacrificing Compatibility - Understand your customers
Microsoft Clarity trimmed clarity.js by 4.5% via an AI agent that tested 50+ code changes, revealing gzip compression penalizes extracted helpers and clean code patterns.
- The AI cost of JavaScript frameworks
Benchmarking coding agents building the same Pokémon app across 13 JavaScript frameworks finds Astro cheapest and fastest, Angular costliest, and client-side bundle size driving performance gaps.
- Make long-running agents faster with message threads
Message threads in Claude's Messages API lets agents send only new turns, cutting median time to first token by about 35% for 500k–1M token sessions.
- 35% Faster Than The Filesystem
SQLite reads and writes small 10KB blobs about 35% faster and with roughly 20% less disk space than individual files, mainly by avoiding repeated open and close calls.
- How hard is it to check for whitespace?
Unicode's evolving 25+ whitespace characters and inconsistent runtime definitions make whitespace detection surprisingly complex, leading Guava to implement a perfect hashing optimization.
- Trystan Sarrade
Switching an open-source Linux process monitor from egui's GPU-based immediate-mode rendering to Slint's software renderer cut memory usage from 135 MB to 30 MB.
- Threads, Mutexes, and Atomics: Start With What Can Go Wrong
Understanding data races, mutex implementation on Linux, and atomic pitfalls (ABA, false sharing) shows that replacing mutexes with atomics is not automatically an optimization.
- Trystan Sarrade
Swapping egui for Slint's software renderer cut a Rust process monitor's RAM from 135 MB to 30 MB by eliminating GPU driver dependencies.
- A tiny world model running games on a Raspberry Pi Pico 2 W
A developer built a compact world model that runs interactive games on a Raspberry Pi Pico 2 W, showing real-time AI inference on a microcontroller.
- Twelve years of distributed SQLite
This piece summarizes twelve years of building and scaling distributed systems on SQLite, detailing the architectural decisions, trade-offs, and practical lessons learned from production use.
- New 14‑inch MacBook Pro with M6
Apple announced a new 14‑inch MacBook Pro powered by the M6 chip, delivering significant performance and efficiency gains over the M5.
- Release Release v0.8.0 · anomalyco/opentui
OpenTUI v0.8.0 drastically reduces per-frame cost through incremental repainting, native scroll control, shared animation clock, and optimized output for slow links, fixing dozens of bugs across core and native subsystems.
- Making agents fast - what I've learnt over the last 12 months - Martin Alderson
Optimizing AI agents involves addressing inference nuances like TTFT vs tok/s, analyzing tool call traces, adjusting thinking budgets, and building tools agents inherently desire.
- Forced alignment with Cue: Character-level audio timing
ElevenLabs releases Cue, a forced alignment model providing character-level timestamps for any audio length, aligning an hour in under a second.
- Evaluation Measures in Information Retrieval
The piece explains four offline evaluation metrics for IR systems—Recall@K, MRR, MAP@K, NDCG@K—with formulas, code, and pros/cons.
- The first search engine with fully vectorized query execution
Turbopuffer v3 will be the first search engine to adopt fully vectorized query execution, enabling strong performance on complex queries.
- Exploring Apple's On-Device Model: Core Advanced
Apple's 20-billion-parameter Core Advanced model uses flash storage and per-prompt expert routing to run on Macs with only 1-4B active parameters, sacrificing math accuracy for low memory and power consumption.
- Software is slow because of bad design, not slow languages
Software slowness is primarily due to inefficient design rather than slow programming languages, and rewriting in faster languages like Rust or C rarely yields significant speedups for most programs.
- KiviDB | Fastest In-Memory Cache and Vector DB
KiviDB is a Redis-compatible in-memory database with vector search, leveraging all CPU cores for AI and real-time applications.
- GitHub - sindresorhus/p-queue: Promise queue with concurrency control
p-queue is a promise queue library with concurrency control, priorities, rate limiting, timeouts, cancellation, and events for rate-limiting async operations.
- Pele · Mermaid diagrams as themeable SVG
Pele renders Mermaid diagrams to SVG using CSS variables for theming, offering zero dependencies and significantly faster, smaller bundling than Mermaid.js.
- Recursion is DEAD and HTML killed it - daverupert.com
A new Declarative Partial Updates proposal adds a <?marker> element to Chromium, enabling out-of-order HTML streaming that eliminates the need for recursive tree-building in nested content rendering.
- Introducing tsrs: a Port of TypeScript to Rust
Cloudflare and VoidZero collaborate on tsrs, a Rust port of TypeScript that is up to 8x faster and uses 70% less memory than TypeScript 7.0.
- How To Use Decision Models for Evals – Hamel’s Blog
The article demonstrates that decision models need careful threshold tuning and cost-performance evaluation, with OpenAI's model outperforming others at a premium.
- Postgres isn't slow, your storage is
PostgreSQL performance issues are typically rooted in inadequate storage setups—slow disks or misconfigured I/O—rather than inherent slowness of the database engine itself.
- Why DuckDB 2.0 is faster
DuckDB 2.0 achieves significant speed improvements through optimized vectorized execution, enhanced parallelism, refined storage formats, and improved query planner for efficient analytical workloads.
- Why DuckDB 2.0 is faster
DuckDB 2.0 achieves speed gains through improved vectorized execution, better parallelism, and refined storage format, plus enhanced optimizer rules that reduce overhead and improve cache utilization.
- Postgres isn't slow, your storage is
The article argues that perceived Postgres slowness usually stems from inadequate storage configuration, not the database itself, and suggests tuning I/O settings or using faster disks to achieve expected performance.
- Tesla Leads a Rush to Sell Electric Cars That Cost More Than $100,000
Tesla and luxury brands such as Jaguar and Bentley are introducing electric cars priced over $100,000 to lure wealthy buyers who traditionally favor gasoline-powered performance vehicles.
- Exploring AWS Lambda Web Functions for building web applications
AWS Lambda Web Functions let you run a standard Node.js HTTP server on Lambda, handling many concurrent requests per environment with active‑CPU billing and global HTTPS endpoints.
- Skia Canvas
Skia Canvas provides a browser‑free implementation of the HTML Canvas API, enabling vector and raster graphics generation, windowed rendering, and multi‑format output using Skia’s GPU‑accelerated engine.
- The Double Headed Stack Allocator – The blog at the bottom of the sea
The double‑headed stack allocator uses two opposing bump‑allocator stacks in a single memory block to eliminate fragmentation when allocating and freeing interleaved transient data.
- Compare every web performance tool
webvitals.fyi offers an opinionated directory of 29 web performance tools, ranked by relevance to different roles and capabilities, plus a performance newsletter.
- What agents mean for Rust (and vice versa)
Rust’s performance defaults, strong type system, and optimization knobs make it well‑suited for AI‑agent coding, though richer proof integration and extensibility could further boost its agent‑friendliness.
- WebSocket servers in JavaScript: Node.js, Bun and Deno in 2026 – Daniel Lemire's blog
Node.js 26 with uWebSockets.js achieves ~49k round‑trips/sec, outpacing Bun and Deno, while the ws package shows similar relative rankings across runtimes.
- Bun v1.4.3 | Bun Blog
Bun v1.4.3 releases with a fast built‑in TypeScript checker, 67‑89% lower idle CPU, new runtime APIs, and fixes for 166 issues across the toolchain.
- Can we change an AI model’s architecture without retraining it from scratch? - Amazon Science
Priming lets researchers reuse pretrained Transformer weights to build efficient hybrid state‑space models at <1% training cost, achieving up to 2× throughput with comparable accuracy.
- So long, Spokes: GitHub rewrites storage to restore reliability, just in time for agentic hordes
GitHub is rewriting its Git storage architecture, replacing the Spokes system with Azure Blob Storage to achieve a 35× write performance boost for agent-driven traffic.
- It’s official: Airline websites are slow, but they don’t have to be
Analysis of 111 airline websites shows 95% fail Google’s Core Web Vitals on mobile, with top‑rated carriers like Qatar Airways and Cathay Pacific among the slowest.
- Shipping JPEG XL in Chrome | Blog
Chrome 155 adds JPEG XL decoding, delivering 30‑50% better compression than JPEG, HDR support and lossless transcoding via a memory‑safe Rust decoder.
- How fast is the web? Explore billions of real-user measurements with BEACON
Cloudflare releases the BEACON dataset, offering billions of anonymized real‑user performance measurements to reveal how web speed varies across browsers, devices, regions and site types.
- Node.js at scale, rebalanced: how we cut cost by 38%
By optimizing their largest Node.js service, the team reduced compute expenses by 38% through targeted performance improvements, better resource allocation, and refined workload scaling.
- Solving Factorio Quality
The article describes methods and tools used to improve the quality and stability of the Factorio game through modding, optimization, and community feedback.
- The Grand Unifying Architecture of Frontend - DEV Community
The article proposes a unified frontend architecture based on client navigation, server content, and client affordances, showing how various frameworks fit this three‑layer model.
- The Bitter Lesson
Over 70 years of AI research, methods that scale with computation—search and learning—consistently beat approaches that encode human knowledge, despite short-term gains from the latter.
Takes
everything is reps
@trq212
I've seen Rob in Discord relentlessly improving terminal-browser in Rex! Note that some of his experience also resulted in finding issues in Rex as well (mainly performance issues in some of our Kitty graphics stack). It's been a good benchmark for us.
@mitchellh
Elite athletes increasingly follow a philosophy called “The Process”—ignore results; focus on doing the small things well. As Marcus Aurelius reminded himself: a life is built action by action. So just focus on completing the task at hand.
@RyanHoliday
He's such an excellent speaker
@levelsio
This model is so so so good. They legit gave us Sonnet 5.5 that runs on 16GB of RAM lol
@skirano
one of our customers sends tens of millions of emails. searching through terabytes of emails used to take a while. so we migrated to @turbopuffer. p50: 40ms p99: 710ms the best part of serving big customers: they push the product to get better for everyone else.
@zenorocha
Is anyone actually using Jev? 1mo ago the hype was amazing; if you search on YouTube you find videos from then, but none now. I tried it for many classification jobs and it was hard to get it just to match Sonnet.
@asmartbear
Good prompt to polish your app, enjoy. Test this in the browser at different widths, with touch emulation, and on a throttled 3G connection. Fix anything that looks broken or feels off. Save a before and after screenshot for every fix and send me a summary afterwards.
@emilkowalski
Need to record video of a Chrome tab, for a demo or tests? There's a new API allowing flawless no-dropped-frames AV1 capture. 60fps easy. But can also do 120fps @2160p. (Yes, for real). It's easy to use within pptr or playwright.. here's a mini npm package:
@paul_irish
> 1,000 tokens per second bro what
@DanielLockyer
It's so nice to read this I've worked with Tommy for almost 12 years, which is a significant portion of my life and much longer than I've known most people these days I learned so much about Linux, sysadmin and performance optimization over that time. I'm still impressed how much impact a single server has had on the world Couldn't have done it without the batshit insane ideas from @levelsio of course Thank you for your service Tommy!! ❤️
@DanielLockyer
Omarchy 4.5 is finally here! Traditional desktop mode, M1/M2/M3/Neo compatibility, 50 languages, 7-second installs, and a million other features, fixes, and improvements. https://omarchy.org/news/2026/11/omarchy-4-5/
@omarchy
Message threads are now in public beta on the Messages API. The API caches your conversation on the server between turns, so instead of resending the full conversation, you send only new messages and the previous message ID, and Claude starts responding sooner.
@ClaudeDevs
This is part of why people who try Omarchy on some old potato PC find that their new MacBook machine suddenly isn't very attractive in comparison. There are a lot of common developer tasks that are just way, way faster on Linux (it's the same with Docker!).
@dhh
I built a good chunk of Shiori iOS on flights with shitty internet, so I spent a lot of time thinking about offline sync, performance for people with 10s of thousands of saved links, optimistic updates, and much more. It is very basic still, but feeling good ... will share more soon!
@brian_lovin
We open sourced a *really fast* HTML artifact builder. It's powered by libfx, making the agent durable. Building the low-level plumbing for v0 to survive server crashes, flaky LLMs, function limits was a huge pain. Now it's easy, free, and OSS:
@rauchg
Moved to tsrs over the weekend. Drop-in replacement. Around 5x faster for OC. Kind of amazing that it took Microsoft a team and two years to rewrite the TS compiler in go, and now you can just let an agent rip and get sth significantly better within weeks.
@steipete
This is how fast the TV moves now that Claude deleted all the BS laggy bloatware it comes with
@doooyle
Life is good now. 🎉 Tell your agent to: - create a new volume in you mac - disable fseventsd (and spotlight) on it - and move your projects folder to it - remount it For extra points move you pnpm cache folder to it. (Start the conversation outside of your projects folder, Also you might need to kill a ton of processes)
@fforres
Just to avoid some confusion: auto-compact does summarize. When it runs, your whole conversation is replaced by a short summary. It doesn't keep the last 1M tokens around. The ~967K is only when it runs on 1M models. Compacting itself is just one request that reads about as many tokens as the message you sent right before it, and it's mostly cache reads if your cache is still warm. What @rohit3a found is that waiting until 967K means every message before that point uses a lot of tokens, because each one includes your whole conversation so far. Most of it is read from the cache, which is much cheaper (so this is usually fine as long as your cache is warm), but it still counts toward your usage and adds up as your conversation grows. /autocompact 400k makes it summarize at 400K instead, so your messages never get that big.
@lydiahallie
Reminder that I don't think you should run agents on a Mac unless you absolutely have to. It will slow you down massively and is not worth it.
@theo
An early preview of experimental Bun + JSC with ahead-of-time compilation For Claude Code's CLI: 24% faster startup, 48% lower memory, 46% lower CPU, and nearly 2x larger binary size
@jarredsumner