logo hsb.horse
← Back to tag index

Tags

#performance

Blog posts, snippets, and glossary entries related to "performance", gathered in one place.

Entries 5
  1. Snippets
    Dynamic Import Caching

    Lightweight TypeScript implementation for caching dynamic imports. Handle multiple imports to the same path with a single Promise.

  2. Snippets
    Cache-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.

  3. Snippets
    Two-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.

  4. Snippets
    Worker 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.

  5. Blog
    My 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.