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

Faster base class sets #2676

Merged
merged 1 commit into from
Jun 7, 2017
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 4, 2017

Speed up construction and testing of base class sets.
Use a linear search with automatic bubbling up of
hits.

Speed up construction and testing of base class sets.
Use a linear search with automatic bubbling up of
hits.
@odersky odersky requested a review from DarkDimius June 4, 2017 11:42
@odersky
Copy link
Contributor Author

odersky commented Jun 4, 2017

@DarkDimius, since you suggested the scheme, do you want to review it?

@DarkDimius
Copy link
Member

Yes, gladly. Did you already do any measurements?

@odersky
Copy link
Contributor Author

odersky commented Jun 5, 2017

I did not do any measurements yet. Jason did a similar change for scalac (minus the bubbling up part) and it gained them some speed there.

@DarkDimius DarkDimius merged commit a527f3b into scala:master Jun 7, 2017
@DarkDimius
Copy link
Member

@biboudis @olafurpg , are the nightly benchmarks up? This PR is a good opportunity to test their sensitivity

@retronym
Copy link
Member

retronym commented Jun 7, 2017

My hypothesis in scalac was that (part?) of the speedup was due to forcing fewer basetypeseqs, which we had to do to compute their length, part of the ordering criteria in the binary search. Here are some numbers measured before and after: scala/scala#5829

@olafurpg
Copy link
Member

olafurpg commented Jun 7, 2017

@DarkDimius I am helping @biboudis setup/manage the benchmark infrastructure. The benchmarks currently run an old 0.1-bin version, fix pending in #2690

@allanrenucci allanrenucci deleted the add-scala12-mixins branch December 14, 2017 16:57
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.

None yet

4 participants