Skip to content

Add typed specialization for ZEND_COUNT #11825

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 1 commit into from
Aug 3, 2023

Conversation

iluuu1994
Copy link
Member

In Symfony Demo, we have 138 executions of the untyped and 144 executions of the typed handler. We went from 29403050 => 29372812 instructions, which is roughly a 0.1% speedup. This only adds two small handlers, which should limit instruction cache eviction. Unfortunately, we still need the SAVE_OPLINE() because destructors of objects inside the array may throw.

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 looks fine to me.

It's possible to eliminate SAVE_OPLINE for IS_CONST and IS_CV operands.

@iluuu1994 iluuu1994 force-pushed the ZEND_COUNT-specialization branch from 96fb35c to f3bd9e9 Compare August 3, 2023 09:02
@iluuu1994 iluuu1994 merged commit 120ae17 into php:master Aug 3, 2023
jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Aug 16, 2023
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.

2 participants