
Tokio Performance Pitfalls, Measured: Blocking, Mutexes, Spawns and File I/O
Five Tokio pitfalls measured on an M2 Pro: inline CPU work took p99 from 80 us to 35 ms, and a lock held across .await cut throughput 400x.

Five Tokio pitfalls measured on an M2 Pro: inline CPU work took p99 from 80 us to 35 ms, and a lock held across .await cut throughput 400x.

26 agent-style defects and 8 correct changes run through 8 blocking CI gates on a Go service: 19 blocked, 7 got through, 1 correct PR blocked, 3.2 s per PR.

thiserror vs anyhow on one Rust log parser: ns per line, allocations per error, and why RUST_BACKTRACE=1 cost 2.6x at 5% bad lines.

We fine-tuned SmolLM2-135M on this blog with llama.cpp. At lr 1e-5, training-text perplexity fell 71% while held-out perplexity rose 30%. Four checks.

216 web pages hiding prompt injections 18 ways: html2text passed 83% to the model, innerText 44%, a visible-text filter 0%, and OCR 0%. Code included.

A measured Rust profiling guide: macOS sample, flame graphs and a counting allocator took a Rust log analyser from 3,256 ms to 233 ms in three fixes.

264 fake secrets in 200 AI agent session logs: gitleaks caught 53%, exact-value redaction 42%, encoding-aware redaction plus a decoded scan 90%.

Real llama.cpp numbers, 3 runs each: continuous batching cut p95 time to first token from 55 s to 6.4 s and nearly doubled throughput.

Hands-on Go pprof guide: CPU, goroutine and mutex profiles on one gateway found three bugs. The fixes cut p99 from 24 ms to 5.1 ms.

Defend agents against prompt injection with tool permissions: the lethal trifecta, per-task grants, pinned MCP tool descriptions, human approval.