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

reduce number of heaps used by partr #32822

Merged
merged 1 commit into from
Aug 8, 2019
Merged

reduce number of heaps used by partr #32822

merged 1 commit into from
Aug 8, 2019

Conversation

JeffBezanson
Copy link
Member

@JeffBezanson JeffBezanson commented Aug 7, 2019

Inspired by #32701 (comment). Using more heaps theoretically reduces contention, but also increases the number of times we're likely to spin looking for a non-empty heap. This change improves the time for pfib(31) with 2 threads from ~6 to ~4 seconds.

@JeffBezanson JeffBezanson added performance Must go faster multithreading Base.Threads and related functionality labels Aug 7, 2019
@JeffBezanson JeffBezanson merged commit 5dd7636 into master Aug 8, 2019
@JeffBezanson JeffBezanson deleted the jb/heapc branch August 8, 2019 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multithreading Base.Threads and related functionality performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant