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

use java concurrent hash map for speed in GenBCode #6183

Merged
merged 1 commit into from
Nov 21, 2017

Conversation

mkeskells
Copy link
Contributor

minor improvement factored out of #6124 to aid review

@scala-jenkins scala-jenkins added this to the 2.12.5 milestone Nov 19, 2017
@retronym
Copy link
Member

retronym commented Nov 20, 2017

I've done something similar in a WIP performance branch: retronym@a4f7018

Your patch looks simpler than mine. I tried to use the Java API directly rather than involving JavaConverters`, but that involved some extra work to make plug it into the per-run cache clearing mechanism.

@retronym
Copy link
Member

Another variation I considered, but haven't implemented, is using a non-concurrent map if the backend is run in single threaded mode (currently the only mode!)

@mkeskells
Copy link
Contributor Author

I know it similar - just trying to get the review of the parallelisation PR moving by moving bits out into separate PRs

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