Comments (3)
Have you tried Data.HashMap
from unordered-containers
? As I mentioned here, although it is a pure data structure, it is actually faster than this library (including Cuckoo), as indicated by benchmarks ran by @ninegua on an internal company use-case from a year ago. Since you're doing this now, perhaps you could try that out? Would be interested to see the numbers for someone else's use-case.
from hashtables.
i.e. just wrap it in a MutVar
or something, that's what we did
from hashtables.
Around the same time I opened this ticket, we switched our application to use an IORef
around an ordinary Data.Map
. (The keys in our application are Word64
s, so something like Data.IntMap
would probably be better, except Data.IntMap
keys are fixed to Int
, which is not guaranteed to have 64 bits.) It turned out that this was fast enough not to be a bottleneck, so we've left it at that.
from hashtables.
Related Issues (20)
- [perf.] CuckooHashTable vs BasicHashTable HOT 1
- Missing instance Eq (HashTable s k v)
- Compilation failure using GHC 7.8.4 HOT 4
- Hashtables 1.2.2.0 should be marked as depending on base >= 4.7 HOT 2
- Build error with GHC 8.4.1-alpha1 HOT 5
- 1.2.3.0 breaks ghc pre 7.10 HOT 1
- Why is performance a third of hash tables in other languages? HOT 4
- Update benchmarks to criterion 1.5
- Adding Hopscotch Hashing HOT 1
- SSE4_2 Broken For Cuckoo HashTable
- Cuckoo loses data when inserting 65th element via mutate HOT 26
- Build error using primitive 0.7.0.0 HOT 2
- Support for hashable-1.3.0.0 HOT 3
- undefined, called at src/Data/HashTable/ST/Cuckoo.hs:406:31 HOT 2
- Compile failure with GHC 9.2 HOT 3
- How to control load factor?
- Support for hashable-1.4 HOT 3
- Noncanonical mappend HOT 2
- Performance gap between 1.2.4.2 and 1.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hashtables.