Skip to content

perf: Fork parallel workers with pcntl_fork when available, fallback to proc_open - #553

Merged
samsonasik merged 5 commits into
mainfrom
pcntl-fork
Nov 8, 2026
Merged

samsonasik merged 5 commits into
mainfrom
pcntl-fork

Conversation

@samsonasik

@samsonasik samsonasik commented Nov 8, 2026 •

Copy link
Copy Markdown
Member
Scenario xdebug coverage (default ini) XDEBUG_MODE=off
repo, cold (--no-cache) 607 β†’ 474 (βˆ’22%) 436 β†’ 242 (βˆ’45%)
repo, one file changed 383 β†’ 194 (βˆ’49%) 363 β†’ 174 (βˆ’52%)
vendor (5.7k files), cold (--no-cache) 3045 β†’ 2976 (flat) 1259 β†’ 1047 (βˆ’17%)
vendor, one file changed 863 β†’ 705 (βˆ’18%) 660 β†’ 519 (βˆ’21%)

Peak memory, summed over the coordinator and all workers (analyze vendor):

Scenario proc_open pcntl_fork
cold (--no-cache) 675 MB 474 MB (βˆ’30%)
one file changed 457 MB 256 MB (βˆ’44%)

@codecov

codecov Bot commented Nov 8, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.

πŸ“’ Thoughts on this report? Let us know!

@samsonasik
samsonasik merged commit 889fa26 into main Nov 8, 2026
14 checks passed
@samsonasik
samsonasik deleted the pcntl-fork branch November 8, 2026 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant