Registry / utility / funny-slab

funny-slab

JSON →
library0.0.0-20180511031532-b1fad5e5d478gogounverified

A lock-free slab allocator for Go, providing efficient memory allocation and reuse.

go get github.com/funny/slab
INSTALL
IMPORT
SIG · FUNNY-SLAB
F
funny-slab
utilitygov0.0.0-20180511031532-b1fad5e5d478
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

slab
✓ github.com/funny/slab

Allocate and free a buffer using a slab pool.

package main import ( "fmt" "github.com/funny/slab" ) func main() { pool := slab.NewAtomPool(64, 64*1024, 2, 1024*1024) buf := pool.Alloc(64) fmt.Println(len(buf)) pool.Free(buf) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20180511031532-b1fad5e5d478latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
funny-slab — go get funny-slab · libregistry