Skip to content

rishvin/fixed_size_mem_pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

---- FIXED SIZE MEMORY POOLER ----

  1. Build: The code has been build using g++ version 5.4.0 on Ubuntu-16.04 using C++14

  2. Time complexity: Create pool - O(1) Destroy pool - O(1) Allocate - O(1) Deallocate O(1)

  3. Usage: Consider pooling a class called Base which takes integer in the constructor.

  • Create the object of this class. FixedSizeMemoryPool pool;

  • Allocate a memory with integer 10 passed to the constructor. int* mem = pool.Allocate(10);

  • Deallocate the memory. pool.Deallocate();

  • Pool memory is destroy when pooler destructor is called.

About

Fixed size memory pool allocator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages