Skip to content

Ultra-Gato/c-map.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This crate is inspired by dashmap. which is a concurrent hashmap.

But dashmap has some poor api design (In my opinion).

Whenever It need to do some operation, every time it compute the same hash key. which is cheap but redundant, and unnecessary locking and unlocking also has some extra overhead.

Moreover, Its very easy to get deadlock in dashmap.

So this crate is to resolve those problems, Also performance should be better then dashmap, as no code is faster then no code. It has less then 150 lines of code...

How it works ?

Instead of a giant rwlock on a hashmap. It use multiple hashmap for better performance.

About

Very fast concurrent hashmap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages