Cmapv2: A high performance, concurrent map
a year ago
- #Concurrent Map
- #Go
- #Profiling
- Install the `cmapv2` package in your Go project using `go get github.com/sirgallo/cmapv2`.
- Run `go mod tidy` to install dependencies.
- Import the package in your Go code with `import "github.com/sirgallo/cmapv2"`.
- Initialize a concurrent map (`cMap`) or a sharded map (`sMap`) with optional shard count.
- Use methods like `Put`, `Get`, and `Delete` to manage key-value pairs.
- Run tests with `go test -v ./tests` or benchmarks with additional profiling flags.
- Analyze profiling results using `go tool pprof` with CPU and memory profiles.