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

Switch active_count from Mutex to RwLock for more performance #23

Merged
merged 1 commit into from
May 6, 2016

Conversation

dns2utf8
Copy link
Member

@dns2utf8 dns2utf8 commented May 6, 2016

This should speed up the active_count of the pool gets polled many times from monitoring threads.

@frewsxcv
Copy link
Collaborator

frewsxcv commented May 6, 2016

Looks great, thanks!

@frewsxcv frewsxcv merged commit cc8d7fd into rust-threadpool:master May 6, 2016
@frewsxcv
Copy link
Collaborator

frewsxcv commented May 6, 2016

Version 1.0.1 has been released which includes this change.

@dns2utf8
Copy link
Member Author

dns2utf8 commented May 6, 2016

Wow, thank you.

This was very fast.

@dns2utf8 dns2utf8 deleted the rwlock branch May 10, 2016 06:57
@dns2utf8 dns2utf8 restored the rwlock branch May 17, 2016 13:30
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.

2 participants