This repository was archived by the owner on Sep 4, 2025. It is now read-only.
Description Description
PR #66 mentioned template caching as a performance feature, but no caching implementation exists in the codebase.
Expected Behavior
Compiled Handlebars templates should be cached
Subsequent compilations of the same template should use cached version
Cache invalidation on file changes
Memory-efficient caching with size limits
Current Behavior
No template caching exists
Every compilation recompiles from scratch
Performance degradation with multiple files
Implementation Requirements
LRU cache for compiled templates
Cache key based on file content hash
Configurable cache size limits
Cache warming for frequently used templates
Cache statistics for monitoring
Thread-safe cache operations
Performance Goals
50%+ speed improvement for repeated compilations
< 100MB memory overhead for typical projects
Sub-millisecond cache lookups
Implementation Location
/packages/core/src/compiler/handlebars-compiler.ts
Consider separate cache module in /packages/core/src/compiler/cache/
Test Requirements
Test cache hit/miss scenarios
Test cache invalidation
Test memory limits
Test concurrent access
Benchmark performance improvements
Related
Reactions are currently unavailable
Description
PR #66 mentioned template caching as a performance feature, but no caching implementation exists in the codebase.
Expected Behavior
Current Behavior
Implementation Requirements
Performance Goals
Implementation Location
/packages/core/src/compiler/handlebars-compiler.ts/packages/core/src/compiler/cache/Test Requirements
Related