Skip to content

php boost #486

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
wants to merge 1 commit into from
Closed

php boost #486

wants to merge 1 commit into from

Conversation

sibkod
Copy link

@sibkod sibkod commented Jan 26, 2024

Removed the creation of a local variable.
This gave an almost 10% increase in speed

@nuald
Copy link
Collaborator

nuald commented Jan 26, 2024

That's a micro-optimization, and not the code that average software developer would write. Another story is using foreach though - that's seems more appropriate and could have the same effect.

@sibkod
Copy link
Author

sibkod commented Jan 27, 2024

Using foreach is what the average developer will write, but it will be even slower than it is now

@sibkod sibkod closed this Jan 29, 2024
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