v0.5.0
Bumper v0.5.0
- The default allocator is now something known as a slab allocator
SlabBuffer
. This comes with a very slight performance hit relative toAllocBuffer
, but the advantage is that it scales very well from handling small allocations all the way up to handling very large allocations. It will only run out of memory when your computer runs out of memory, but it also won't hog memory that's not in use. It is also be much faster to construct than the old defaultAllocBuffer
. AllocBuffer
still exists, but now defaults to 128kb of storage instead of 1/8th of your computer's physical memory. This allocator is very slightly faster than the slab allocator, but will error if it runs out of memory. It also is more flexible in the kinds of types it can wrap to use as underlying storage.- There is now an API for hooking user-defined allocators into the
@no_escape
and@alloc
machinery. alloc(::Type{T}, buffer, dims...)
is nowalloc!(buffer, ::Type{T}, dims...)
alloc_nothrow
and@alloc_nothrow
have been removed. People who need this can instead create custom no-throw buffer types.
Merged pull requests:
- Switch to slab allocators, add allocator API (#24) (@MasonProtter)
Closed issues: