First release of bumpalo-herd

Hello

I'd like to announce the first release of bumpalo-herd.

I've used the bumpalo crate for bump allocation before and I was always bit annoyed it is mostly incompatible with rayon or scoped threads.

I wrote the bumpalo-herd crate that builds on top of it and makes it possible:

let ints: Vec<&mut usize> = (0usize..1_000)
    .into_par_iter()
    .map_init(|| herd.get(), |bump, i| {
        bump.alloc(i)
    })
    .collect();
5 Likes

Looks nice! I'm happy to see a new use for map_init, since that's kind of a funny construct.

1 Like