Categorygithub.com/unixpickle/memalloc
modulepackage
0.0.0-20240305162106-686962126c9b
Repository: https://github.com/unixpickle/memalloc.git
Documentation: pkg.go.dev

# README

memalloc

This is a general-purpose memory allocator written in Go. I wrote it to allocate GPU memory for anyvec, but it could be used for other things as well.

# Functions

NewBFC creates an Allocator that uses a best-fit with coalescing algorithm.

# Structs

MemAllocator wraps an Allocator and uses it to create unsafe.Pointers.

# Interfaces

An Allocator allocates ranges of integers.