Skip to content

Remove _zend_ast_decl->lex_pos #10046

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
Dec 22, 2022

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Dec 3, 2022

This struct member was only written to, but never read.
On Linux x86-64, this shrinks _zend_ast_decl from 80 bytes to 72 bytes.

This struct member was only written to, but never read.
Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

This might be used in extensions. A quick search on SourceGraph revealed nothing though.

Note that zend_ast_decl are only used for declarations, whereas zend_ast is mainly used. So the difference is likely negligible.

@nielsdos
Copy link
Member Author

nielsdos commented Dec 4, 2022

Thank you for the review.
Ah, I overlooked the fact that extension could use this. In that case it's probably best then that this doesn't get merged I guess :)

@iluuu1994
Copy link
Member

I asked for opinions in our internal chat. I'll get back to you. IMO it would be fine to remove this in master and see if anybody complains. It can always be reverted.

@nikic
Copy link
Member

nikic commented Dec 5, 2022

It's fine to drop this. We used to make use of this for RTD key generation, but this is handled differently now.

@iluuu1994 iluuu1994 merged commit 23fe58c into php:master Dec 22, 2022
@nielsdos nielsdos deleted the remove-_zend_ast_decl-lex_pos branch March 19, 2023 15:23
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.

3 participants