Skip to content
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

Use fully-qualified name for native functions #1887

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dreis2211
Copy link

Hi,

as this is my first PR in this project and I have't found a contributing guideline, please let me know in case you need anything from me.

This PR makes use of fully-qualified names for native functions - aka prefixing them with \ - to allow optimizations through the engine. This is definitely a micro-optimization and I haven't measured it here, but it's a relatively common optimization in the PHP world these days, so I hope this is considered. E.g see https://php.watch/articles/php-zend-engine-special-inlined-functions

Cheers,
Christoph

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.

None yet

1 participant