Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple Memory Manager for Go
Go
branch: master
Failed to load latest commit information.
LICENSE added a BSD license
README.md initial commit
manager.go ran gofmt

README.md

Simple memory manager. Useful in some cases where managing your own memory is simple, and where waiting for the GC to collect it and make it reusable causes unnecessary slowdown.

manager := memory.NewManager()

// Grab a block of a particular size
block := manager.GetBlock(2000)

// Give the block back to the manager so we can use it again later.
manager.FreeBlock(block)
Something went wrong with that request. Please try again.