Skip to content

Combine some encoding files #1199

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 2 commits into from
Aug 3, 2023
Merged

Combine some encoding files #1199

merged 2 commits into from
Aug 3, 2023

Conversation

kddnewton
Copy link
Collaborator

The majority of the encodings that we support a single-byte encodings, we so we use a 256-byte lookup table to handle metadata checks. Almost all of the functionality is the same, except that it references different tables. Here we simplify the whole thing by putting them into the same file - you get all of the tables immediately and then creating them is very similar in almost all cases. As a bonus, this cuts down a lot on the number of source files, which means compilation times are better.

@kddnewton kddnewton changed the title Combine encoding files Combine some encoding files Aug 3, 2023
@kddnewton kddnewton merged commit daa15b2 into main Aug 3, 2023
@kddnewton kddnewton deleted the combine-encoding-files branch August 3, 2023 17:12
k0kubun added a commit to ruby/ruby that referenced this pull request Aug 17, 2023
This has not been relevant since ruby/prism#1199.
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.

1 participant