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

Make Region fields private #59

Merged
merged 4 commits into from
May 23, 2023
Merged

Conversation

headius
Copy link
Member

@headius headius commented Feb 4, 2023

This is a follow-up to #58 and will release in 2.2.

headius added 3 commits May 23, 2023 10:18
This is a follow-up to jruby#58 and will release in 2.2.
Whie benchmarking the CSV library in JRuby, one of the largest
groups of allocated objects was int[] primarily for Region
objects, some of which most likely only have one regionand do not
need the flexibility of an array of regions. This commit splits
Region into multi and single forms, so that single-region objects
can be as compact as possible and not require a second (or third)
object for the beg/end arrays.
@headius headius force-pushed the private_region_fields branch from db0aa3a to 44204ac Compare May 23, 2023 15:22
It's equivalent to begEnd.length / 2.
@headius headius merged commit d2a0fed into jruby:master May 23, 2023
@headius headius deleted the private_region_fields branch May 23, 2023 15:58
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