Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

0.2.0

Choose a tag to compare

@bodil bodil released this 29 Nov 16:18
· 39 commits to master since this release
v0.2.0
d2b7549

CHANGED

  • The pool is now reference counted, which means your PoolRefs won't suddenly become dangerously invalid when the pool goes out of scope. This also means that you can now clone a Pool and get another reference to the same pool.

ADDED

  • There are now both Sync and !Sync versions of the pool. The latter, in refpool::unsync::Pool, is as performant as previously, while the thread safe version in refpool::sync::Pool is roughly 5-10x slower, but still manages to be about 25% faster than the Windows system allocator. You should prefer not to use it on platforms with faster system allocators, such as Linux. To enable the thread safe version, use the sync feature flag.
  • A method Pool::fill() has been added, which preallocates memory chunks to the capacity of the pool.