Object Pool
A thread-safe object pool with automatic return and attach/detach semantics
The goal of an object pool is to reuse expensive to allocate objects or frequently allocated objects Common use case is when using buffer to read IO
You would create a Pool of size n, containing Vec that can be used to call something like file.read_to_end(buff)
Usage
[]
= "0.1"
extern crate object_pool;
Basic usage for pulling from the pool
let pool: = new
For access across multiple threads simply wrap the pool in an Arc
let pool: = new
Check out the docs for more info