Tags
#performance
Blog posts, snippets, and glossary entries related to "performance", gathered in one place.
- SnippetsDynamic Import Caching
Lightweight TypeScript implementation for caching dynamic imports. Handle multiple imports to the same path with a single Promise.
- SnippetsCache-First, Live-Fetch Orchestration Pattern
Orchestration combining a fast path from cache and a slow path from remote. Measures cache hit/miss, fetch latency, and final outcome as metrics, delegating side effects outward.
- SnippetsTwo-Phase Repository Walk with Byte Budget
Split processing into path/size scan → structure analysis → read only needed chunks → parse to make memory limits controllable even for large repositories.
- SnippetsWorker Pool with Sub-batches and Per-sub-batch Timeout
A pattern that splits large datasets into small sub-batches sent to workers, reducing memory pressure while setting timeouts per batch for early anomaly detection.
- BlogMy Notes on `Cache-Control: max-age=3, must-revalidate`
A breakdown of the behavior behind a micro-caching Cache-Control setting. This article covers what `max-age=3` plus `must-revalidate` actually does, a timeline of how it behaves, and concrete use cases.
hsb.horse