Skip to content

runningwild/memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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)

About

Simple Memory Manager for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages