Skip to content

Performance

#performance

12 posts tagged #performance on DiCodeWeb, from fundamentals to production, newest first.

12 postsUpdated Sep 17, 2026

Posts

LLM Cost and Latency in Production: Token Accounting, Caching, Routing and Fallbacks

What happens to an LLM feature once real traffic arrives: where latency actually comes from, a per-feature token and cost meter with tenant budgets, structuring prompts for provider prompt caching, exact and semantic caching, model routing, trimming context, batch APIs, parallel calls, retries with fallback and circuit breakers, and the dashboard I watch.

Systems & architecture8 min

Streaming SSR and Suspense: What Actually Happens on the Wire

How streaming HTML works at the protocol level, where to put Suspense boundaries, avoiding waterfalls, selective hydration, Partial Prerendering in Next.js 16, the effect on TTFB, LCP and CLS, proxies that silently buffer your stream, and handling errors after a 200 has already gone out.

Performance9 min

The Event Loop, Microtasks and Rendering: Why Your UI Freezes

A correct mental model of the browser event loop — tasks, microtasks, frames — tested with predict-the-output puzzles, then used to explain why UIs freeze and how to chunk work, yield to the main thread and move heavy work to a Web Worker.

Performance14 min

List Virtualization from Scratch: Rendering 100,000 Rows Smoothly

Building a virtual list in React + TypeScript by hand: windowing math with real numbers, overscan, variable heights with prefix sums and binary search, measuring with ResizeObserver, preventing scroll jumps, accessibility — and when not to virtualize at all.

Performance16 min

React Compiler in Practice: Adopting It in a Codebase That Already Ships

What React Compiler actually does, the Rules of React it relies on, the ESLint plugin, incremental rollout with annotation mode and "use no memo", what to do with existing useMemo/useCallback, how to verify it works, common bailouts, third-party libraries and build cost.

Performance9 min

Web Fonts Done Right: Fast, Stable and Correct for Vietnamese

How fonts affect LCP and CLS, choosing font-display, preloading the critical font, subsetting with unicode-range for Vietnamese, variable fonts, self-hosting versus CDNs, fallback metric overrides and next/font in Next.js.

Performance8 min
All tags