Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colla

A header-only memory allocator library written in C++, compatible with STL containers.

Features

  • No dependencies, header-only.
  • Compatible with STL containers.
  • Multiple allocators:
    • colla::FixedBufferAllocator<T>: Allocates memory from a buffer of fixed size.
    • colla::ArenaAllocator<T>: Allocates memory from a pre-allocated arena.
    • colla::SlabAllocator<T>: Allocates memory in slabs from a cache, allocating another cache if all are full.

Usage

You can look into examples/ for example usage of each allocator. You can build them by turning on the BUILD_EXAMPLES option in CMake.

Compatibility

Due to being backed by mmap, slab and arena allocators work only on POSIX systems.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Header-only memory allocator library written in C++

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages