Skip to content

Remove unnecessary FN type information from OPCache #5029

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

Conversation

kocsismate
Copy link
Member

@kocsismate kocsismate commented Dec 20, 2019

Can I also remove the items where there is a MAY_BE_OBJECT in the FN definition like for date_modify()? Will/would it improve the accuracy of DCE (or any other optimization for which this dataset is used) due to the fact that the exact class is known?

(The build will be red because master currently fails)

@nikic
Copy link
Member

nikic commented Dec 20, 2019

Can I also remove the items where there is a MAY_BE_OBJECT in the FN definition like for date_modify()? Will/would it improve the accuracy of DCE (or any other optimization for which this dataset is used) due to the fact that the exact class is known?

The class entry information is not used right now (see TODO lower in the file). Once that is implemented, accuracy will improve, yes.

@nikic
Copy link
Member

nikic commented Dec 20, 2019

And because I didn't actually answer the question: Yes, it's okay to also drop those that contain MAY_BE_OBJECT.

@kocsismate
Copy link
Member Author

Thank you for all the information :) I included the functions in question and rebased to fresh master. I'll apply the changes after successful CI run.

kocsismate added a commit to kocsismate/php-src that referenced this pull request Dec 20, 2019
@kocsismate kocsismate closed this Dec 20, 2019
@kocsismate kocsismate deleted the remove-fn branch December 20, 2019 15:47
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