Skip to content

refactor(compiler-cli): account for oxc_allocator arena bytes in shared .d.ts parse cache - #71906

Draft
atscott wants to merge 1 commit into
angular:mainfrom
atscott:perf/ngp-dts-cache-arena-bytes
Draft

atscott wants to merge 1 commit into
angular:mainfrom
atscott:perf/ngp-dts-cache-arena-bytes

Conversation

@atscott

@atscott atscott commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Each cached ParsedFile in shared_dts_parse_cache holds both the .d.ts source text and its oxc_allocator::Allocator AST arena (which typically uses ~5-6x the source text size). This updates shared_dts_parse_cache to include allocator.used_bytes() alongside the source text byte length when accounting against the 192 MiB cache capacity.

…ed .d.ts parse cache

Each cached `ParsedFile` in `shared_dts_parse_cache` holds both the `.d.ts` source text and its `oxc_allocator::Allocator` AST arena (which typically uses ~5-6x the source text size). Include `allocator.used_bytes()` alongside the source text byte length when accounting against the 192 MiB cache capacity.
@angular-robot angular-robot Bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Nov 10, 2026
@ngbot ngbot Bot added this to the Backlog milestone Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: compiler Issues related to `ngc`, Angular's template compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant