Skip to content

Molle94/mutexmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mutexmap

MutexMap provides a generics-based go standard map protected by a RWMutex. It exposes the same methods as sync.Map but with better type safety and performance in scenarios with up to four cores. For benchmarks with sync.Map compare (https://medium.com/@deckarep/the-new-kid-in-town-gos-sync-map-de24a6bf7c2c)

Usage

Create a new MutexMap with string keys and *http.Client values
m := NewMutexMap[string, *http.Client]()

About

MutexMap provides a go standard map protected by a RWMutex. It exposes the same methods as sync.Map but with better type safety and performance in scenarios with up to four cores.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages