Skip to content

[perf] Reduce memory usage on LPT bucket by recycling workers and keeping files in discovery order - #8867

Merged
TomasVotruba merged 3 commits into
mainfrom
reduce-memory-lpt
Oct 28, 2026
Merged

TomasVotruba merged 3 commits into
mainfrom
reduce-memory-lpt

Conversation

@samsonasik

@samsonasik samsonasik commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Benchmark (bench/parallel_memory_bench.php)

symfony/symfony src/ (6,529 files without tests), 8 workers, cold cache, deadCode + codeQuality + typeDeclarations + earlyReturn sets. Memory is the summed RSS of the main process and all workers; runs were interleaved.

php bench/parallel_memory_bench.php /path/to/symfony/src 8 1
Metric Before After
Peak total RSS (run 1 / run 2) 8,219 / 8,235 MiB 6,082 / 6,100 MiB (-26%)
Peak single worker (run 1 / run 2) 1,052 / 1,053 MiB 806 / 818 MiB (-23%)

@samsonasik

Copy link
Copy Markdown
Member Author

@TomasVotruba ready 👍

@TomasVotruba
TomasVotruba merged commit 751ab42 into main Oct 28, 2026
50 checks passed
@TomasVotruba
TomasVotruba deleted the reduce-memory-lpt branch October 28, 2026 08:35
@TomasVotruba

Copy link
Copy Markdown
Member

Let's give it a go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants