Skip to content

Conversation

@camc314
Copy link
Contributor

@camc314 camc314 commented Nov 17, 2025

Add AllocatorPool::new_dual() to support both standard and fixed-size allocators
in a single pool, allowing runtime selection based on file purpose. This reduces
memory usage when using the import plugin by using standard allocators (~few MB)
for dependency files that are only parsed for module resolution, while reserving
fixed-size allocators (~2 GiB address space) only for entry files that need
linting with JS plugins.

Fixes #15799

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI labels Nov 17, 2025
Copy link
Contributor Author

camc314 commented Nov 17, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the C-enhancement Category - New feature or request label Nov 17, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Nov 17, 2025

CodSpeed Performance Report

Merging #15802 will not alter performance

Comparing c/11-17-feat_allocator_optimize_memory_usage_with_dual_allocator_pools_for_import_plugin (37e4ce9) with main (e346426)

Summary

✅ 42 untouched
⏩ 3 skipped1

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@camc314 camc314 force-pushed the c/11-17-feat_allocator_optimize_memory_usage_with_dual_allocator_pools_for_import_plugin branch 5 times, most recently from e7e21b7 to 2e84003 Compare November 18, 2025 15:41
…import plugin

Add `AllocatorPool::new_dual()` to support both standard and fixed-size allocators
in a single pool, allowing runtime selection based on file purpose. This reduces
memory usage when using the import plugin by using standard allocators (~few MB)
for dependency files that are only parsed for module resolution, while reserving
fixed-size allocators (~2 GiB address space) only for entry files that need
linting with JS plugins.

Fixes #15799
@camc314 camc314 force-pushed the c/11-17-feat_allocator_optimize_memory_usage_with_dual_allocator_pools_for_import_plugin branch from 2e84003 to 37e4ce9 Compare November 18, 2025 17:27
@github-actions github-actions bot added the A-editor Area - Editor and Language Server label Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-editor Area - Editor and Language Server A-linter Area - Linter C-enhancement Category - New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize allocator usage for import plugin: Use standard allocators for dependency files

2 participants