Skip to content

make yp_constant_id_ts useful for constant pool indexing#1554

Closed
froydnj wants to merge 2 commits intoruby:mainfrom
froydnj:froydnj-stable-constant-id
Closed

make yp_constant_id_ts useful for constant pool indexing#1554
froydnj wants to merge 2 commits intoruby:mainfrom
froydnj:froydnj-stable-constant-id

Conversation

@froydnj
Copy link
Contributor

@froydnj froydnj commented Sep 19, 2023

This turns out to be really useful (#1537, #1533, #1449, etc.), and we can make everything smaller while doing so.

@froydnj froydnj force-pushed the froydnj-stable-constant-id branch from 05e5c22 to 43a25da Compare September 19, 2023 18:13
@kddnewton
Copy link
Collaborator

Performance/memory impact?

@froydnj
Copy link
Contributor Author

froydnj commented Sep 19, 2023

Performance/memory impact?

Performance is improved by ~1% on a subset of Stripe's codebase. Constant pool size isn't counted in YARP::Debug.memsize, but manually adding it suggests that this PR saves ~1-2% of memory allocated.

Copy link
Collaborator

@kddnewton kddnewton left a comment

Choose a reason for hiding this comment

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

Great work. I'll need to merge this into ruby/ruby first to ensure I don't break CI since this is a breaking change to the C API, then I'll merge this.

@kddnewton kddnewton mentioned this pull request Sep 27, 2023
@kddnewton
Copy link
Collaborator

Merged this in #1605

@kddnewton kddnewton closed this Sep 27, 2023
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