poule

Crates.iopoule
lib.rspoule
version0.3.2
sourcesrc
created_at2020-03-27 15:45:57.018797
updated_at2020-03-31 20:05:01.941075
descriptionA pool of reusable values
homepagehttps://github.com/sozu-proxy/poule
repositoryhttps://github.com/sozu-proxy/poule
max_upload_size
id223537
size20,004
Geoffroy Couprie (Geal)

documentation

https://docs.rs/poule

README

A growable pool of reusable values

(originally based on the pool crate)

A Rust library providing a pool structure for managing reusable values. All values in the pool are initialized when the pool is created. Values can be checked out from the pool at any time. When the checked out value goes out of scope, the value is returned to the pool and made available for checkout at a later time.

The pool can allocate memory as need, up to a maximum number of elements. Growing the pool does not require copying or moving memory.

Build Status

Usage

To use poule, first add this to your Cargo.toml:

[dependencies]
poule = "0.3.0"

Then, add this to your crate root:

extern crate poule;

Features

  • Simple
  • Lock-free: values can be returned to the pool across threads
  • Stores typed values and / or slabs of memory
Commit count: 47

cargo fmt