Page Visibility Is a Signal, Not a Shutdown Hook
Pause optional work when a document is hidden, and resume carefully when it becomes visible.
Topic · 15 stories
15 stories tagged performance on AI Tamer, newest first.
Pause optional work when a document is hidden, and resume carefully when it becomes visible.
IntersectionObserver reports geometry, not whether a person saw or read an element.
A size callback can create feedback. Make writes converge before reaching for animation frames.
On Linux, load average includes tasks in uninterruptible sleep, waiting on disk or some locks. A load five times the core count can mean a machine stalled on memory or I/O, with CPUs that are not even full.
Why gzip and brotli belong to the representation itself, while chunked transfer is about how bytes cross the wire.
Why no-cache still allows caching and requires revalidation, while no-store forbids storing the response at all.
How an informational 103 response pre-announces Link headers so a client can preload or preconnect while the server still works.
How HTTP/2 uses a connection-level and a stream-level credit window so a receiver can limit what it buffers and keep streams from blocking each other.
One blocking call in a Tokio task can stall every other task on that thread. How to recognise blocking work, when spawn_blocking is the answer, and when a dedicated thread is the better one.
"It's faster now" is a claim, and one timed run can't support it. Warm-up, repeated runs, outliers, noise thresholds and what to write down, using hyperfine and Criterion.rs as worked examples.
Record stack samples with perf record -g, fold them with stackcollapse-perf.pl, render an SVG with flamegraph.pl, and read the width of each box as time spent.
A repeated prompt can cost less when its beginning stays the same. Here is how to arrange stable instructions and changing context so the cache has something useful to reuse.
A Web Worker can move browser-side computation away from the interface thread. Here is how to send work, return results, and handle the limits.
Stored and virtual generated columns calculate the same kind of value at different times. A usage total shows how to choose between them.
GitHub’s Stephen Toub details rewriting the Copilot agent runtime from TypeScript/Node into 800k+ lines of production Rust, shipping incrementally with an embeddable C ABI. Latency figures are GitHub eng benchmarks without model or network time.