Expand description
Streaming compilation for large (100K+ page) sites. Streaming compilation for large sites.
Processes content files in batches to cap peak memory usage, enabling compilation of 100K+ page sites within a configurable memory budget.
The streaming compiler divides content files into chunks based on the memory budget, compiles each chunk, then releases it before processing the next. After all chunks, a merge pass unifies cross-page artefacts (sitemap, search index, feeds).
Structs§
- Memory
Budget - Memory budget configuration for streaming compilation.
Constants§
- DEFAULT_
MEMORY_ BUDGET_ MB - Default peak memory budget: 512 MB.
Functions§
- batched_
content_ files - Collects content files and returns them as batches.
- compile_
batch - Compiles a single batch of content files into the build directory.
- should_
stream - Determines whether streaming compilation should be used.