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 rw spinlock to protect tables #5

Merged
merged 1 commit into from
Nov 4, 2015
Merged

Conversation

arthurprs
Copy link
Contributor

This allows higher concurrency and smaller overhead compared to stdlib HashMap on low concurrency, specially on read heavy workloads.

I also updated the tests/examples to compile in a more recent rustc.

@arthurprs arthurprs changed the title use rw spinlock to protect tables Use rw spinlock to protect tables Oct 17, 2015
@veddan
Copy link
Owner

veddan commented Nov 4, 2015

Sorry for the late reply.
This looks good to me. I have some benchmarks I haven't published yet that show a good speedup from this patch. It cuts down significantly on binary size too.

veddan added a commit that referenced this pull request Nov 4, 2015
Use rw spinlock to protect tables
@veddan veddan merged commit 8ed87a7 into veddan:master Nov 4, 2015
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