go-generics-tools

module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2022 License: MIT

README

GoLang Generics tools: Heap structure, sharded rw-locked map.

Go Report Card MIT License

Introduction

The Heap package contains simple binary heap implementation, using Golang generics. There are several heap implementations Details.

The ShardedLockMap package contains implementation of sharded lock map. Interface is similar to sync.map, but sharded lock map is faster on scenarios with huge read load with rare updates, and uses less memory, doing less allocations. Details

Compatibility

Minimal Golang version is 1.18. Generics and fuzz testing are used.

Installation

To install package, run:

go get github.com/lispad/go-generics-tools/binheap

or

go get github.com/lispad/go-generics-tools/smap

License

The binheap package is licensed under the MIT license. Please see the LICENSE file for details.

Directories

Path Synopsis
Package binheap provides implementation of binary heap for any type with use of golang generics, and top-N heap usecases.
Package binheap provides implementation of binary heap for any type with use of golang generics, and top-N heap usecases.
examples
heap command
topn command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL