Skip to content

Conversation

@jvoisin
Copy link
Contributor

@jvoisin jvoisin commented Apr 16, 2024

No description provided.

Copy link
Member

@dstogov dstogov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This loop was especially optimized for performance.
It doesn't make sense to change it without a real reason.

@jvoisin
Copy link
Contributor Author

jvoisin commented Apr 17, 2024

Readability? PHP's heap management code is complicated enough as it is without having contortions like his. The last time this code was touched, it was 10 years ago (by you). I do hope that compilers got better at improving trivial loops in the meantime.

@iluuu1994
Copy link
Member

Optimizers work based on heuristics. It's really not possible to know whether some optimization is beneficial or detrimental without testing. Can you test whether this changes performance?

@github-actions
Copy link

There has not been any recent activity in this PR. It will automatically be closed in 7 days if no further action is taken.

@github-actions github-actions bot added the Stale label Jun 18, 2024
@jvoisin jvoisin closed this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants