Skip to content

dborchard/tiny_mpool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Memory Pool

Memory pool is a memory management technique that pre-allocates a large amount of memory from the system and then provides it to the client when needed. It is also known as fixed-size block allocator or region-based memory allocator. It is a special case of object pool pattern. It is used to manage memory in garbage collected languages where the garbage collector does not provide efficient memory management.

Types of Memory Pool

  • Safe Memory Pool: Here we are using Go primitives like make([]byte, size) and sync.Pool to allocate and deallocate memory.
  • Unsafe Memory Pool: Here we are using unsafe package to allocate and deallocate memory.

About

Tiny Memory Pool in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages