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

Refactor ast internal structure to store annotation more efficiently. #1649

Merged
merged 1 commit into from
Mar 10, 2017

Conversation

jemc
Copy link
Member

@jemc jemc commented Mar 10, 2017

Now annotation and type are both stored, while only using one pointer
(and one flag) rather than two pointers on the ast_t struct.

This saves size in allocations, and particularly puts us in a smaller
size class when it comes to the next-power-of-two size that dictates
which memory pool we allocate from.

This was discussed in #1531.

Now annotation and type are both stored, while only using one pointer
(and one flag) rather than two pointers on the ast_t struct.

This saves size in allocations, and particularly puts us in a smaller
size class when it comes to the next-power-of-two size that dictates
which memory pool we allocate from.
@sylvanc sylvanc merged commit f788bb9 into master Mar 10, 2017
@jemc jemc deleted the refactor/ast-annotation-type branch March 10, 2017 15:08
jemc added a commit that referenced this pull request Mar 26, 2017
jemc added a commit that referenced this pull request Mar 26, 2017
jemc added a commit that referenced this pull request Mar 26, 2017
jemc added a commit that referenced this pull request Mar 26, 2017
Fixes #1751, a compiler assertion error related to this system.
Praetonus pushed a commit that referenced this pull request Mar 27, 2017
Fixes #1751, a compiler assertion error related to this system.
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