8000 Native function and constant invocation CS by Tobion · Pull Request #8178 · composer/composer · GitHub
[go: up one dir, main page]

Skip to content

Native function and constant invocation CS #8178

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

Closed

Conversation

Tobion
Copy link
Contributor
@Tobion Tobion commented Jun 11, 2019

The first commit fixes the CS according to the current ruleset. The second/third adds native_constant_invocation and native_function_invocation fixers which could speed up composer a little. Ref. symfony/symfony#27852

@Tobion
Copy link
Contributor Author
Tobion commented Jun 11, 2019

I saw #6777 but don't agree with not enabling it.

The CS rules are not enforced by composer so it does not add a burden on contributors. And it does not add a burden on maintainers because the CS fixing is fully automated.

Even if this only improves composer performance by 0.5% (others reported 5%), please be aware that composer runs everywhere (CI, developers machines, autoload on servers). So saving a little has big impact for everyone. Please also consider the power savings for the environment.

One small step for composer, one giant leap for computers.

@Seldaek
Copy link
Member
Seldaek commented Jun 11, 2019

Right now with the 2.0 branch in the air I am definitely not going to merge this.. Way too much conflict potential.

As for saving the planet.. I am doubtful of the impact this has, but if there is an impact, 99% of it can probably be done by tweaking a couple files with hot loops, as opposed to polluting all files with useless backslashes. I don't care if it's automated, humans have to read the code still, and this doesn't do any good on that front.

@Seldaek Seldaek closed this Jun 11, 2019
@Tobion Tobion deleted the native-function-constant-invocation branch June 11, 2019 13:51
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
0