giacomodrago / fcmm Goto Github PK
View Code? Open in Web Editor NEWFast Concurrent Memoization Map (fcmm) is an almost lock-free concurrent hashmap written in C++11 to be used for memoization in concurrent environments.
License: Other
Fast Concurrent Memoization Map (fcmm) is an almost lock-free concurrent hashmap written in C++11 to be used for memoization in concurrent environments.
License: Other
as readme.md said,it support only insert and update, how could we remove item from it?
Hello, first thanks for your amazing work!
I found here may be a potential bug:
First you tried to lock the bucket:
if (bucket.state.compare_exchange_strong(bucketState, Bucket::State::BUSY, std::memory_order_relaxed))
Then you write key (and value) in:
bucket.entry.first = std::move(key);
Finally your change the state of the bucket to mark its state as ready:
bucket.state.store(Bucket::State::VALID, std::memory_order_release); // mark the bucket as valid
The problem, I think, lies in the situation when two threads try to insert the same key into the hashtable:
The two threads can probably insert the same key into two different buckets - when one thread already applied a free bucket but hasn't saved the key inside. At this time, the second thread cannot see the key in the table so it would apply a new bucket for that key.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.