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

Stop compressing integer lists #160

Merged
merged 1 commit into from
May 31, 2021

Conversation

casperisfine
Copy link

It is unclear why this was implemented, I assume it was for performance back in 2006.

However today, this compression defeats bytecode caching entirely and end up being counter productive.

cc @tenderlove

It is unclear why this was implemented, I assume
it was for performance back in 2006.

However today, this compression defeats bytecode caching
entirely and end up being counter productive.
@hsbt
Copy link
Member

hsbt commented May 31, 2021

It seems a reasonable. But I'm not sure why it's added with the historical reason.

@casperisfine
Copy link
Author

sure why it's added with the historical reason.

Yes, I tried to find some reasoning in the git history, but got stuck at this stage: https://github.com/ruby/racc/blame/fa7cc077e37f879cc56546aafb42b502c82f7e91/output.rb#L265

Maybe it was simply to reduce the generated code size? It's true that my PRT makes the output much less compact, but IMHO that's not what we should be optimizing for.

@tenderlove
Copy link
Member

IMHO that's not what we should be optimizing for.

I agree. This seems fine to me.

@tenderlove tenderlove merged commit e0d9c1a into ruby:master May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants