Skip to content

[1.x] Makes Pint 40x faster #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 2, 2025
Merged

[1.x] Makes Pint 40x faster #376

merged 13 commits into from
Jul 2, 2025

Conversation

nunomaduro
Copy link
Member

@nunomaduro nunomaduro commented Jul 2, 2025

this pull request adds the --parallel option to laravel pint, enabling it to fully leverage the parallel capabilities of php cs fixer. the results are just insane:

the “40x” faster claim, is on the first run, and will depend on your laptop, but on mine: Apple M4 Max 36GB Ram.

laravel project with 1936 files:  
before: 2 minutes 🐌🐌  
after:  3 seconds 🏎️💨

laravel project with 989 files:
before: 41 seconds 🐌🐌  
after:  1 second 🏎️💨

this feature has actually been in php cs fixer for a while — we just hadn’t been using it until now. 🤷🏻‍♂️

finally, this new feature should be considered experimental and potentially unstable. therefore, i’ve added the experimental wording to the optional flag --parallel, so people can try it out in the meantime.

@nunomaduro nunomaduro marked this pull request as ready for review July 2, 2025 10:44
@nunomaduro nunomaduro marked this pull request as draft July 2, 2025 10:50
@nunomaduro nunomaduro marked this pull request as ready for review July 2, 2025 11:46
@taylorotwell taylorotwell merged commit 6d567e6 into main Jul 2, 2025
6 checks passed
@nunomaduro nunomaduro deleted the feat/parallel branch July 2, 2025 22:37
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.

2 participants