Skip to content

Fix #3721: Roll back SubstMap functionality into general TreeTypeMap #3868

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 1 commit into from
Feb 2, 2018

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jan 18, 2018

Adding SubstMap is a bit clunky and might have been a performance regression.
Trying to do without it by rolling back its hehavior to regular TreeTypeMaps.
Downsides:

  • loss of modularity (TreeTypeMaps have to know about holes)
  • possible loss of error checking (normal TreeTypeMaps no longer crash when seeing a hole)

@odersky
Copy link
Contributor Author

odersky commented Jan 18, 2018

test performance please

@dottybot
Copy link
Member

performance test scheduled: 3 job(s) in queue, 1 running.

@dottybot
Copy link
Member

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/3868/ to see the changes.

Benchmarks is based on merging with master (79281da)

@odersky
Copy link
Contributor Author

odersky commented Jan 21, 2018

No change in performance, and we have identified another likely culprit. So it comes down to whether the simplification is worth it.

@odersky
Copy link
Contributor Author

odersky commented Jan 24, 2018

I think the simplification is probably large enough to justify the change.

@odersky odersky requested a review from biboudis January 24, 2018 08:47
@odersky odersky removed their assignment Jan 24, 2018
Adding SubstMap is a bit clunky and might have been a performance regression.
Trying to do without it by rolling back its hebavior to regular TreeTypeMaps.
Downsides:

 - loss of modularity (TreeTypeMaps have to know about holes)
 - possible loss of error checking (normal TreeTypeMaps no longer crash when seeing a hole)
@odersky odersky merged commit cbaa827 into scala:master Feb 2, 2018
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.

3 participants