I need arrays allocated dynamically so I need a memory pool for doing this efficiently. I found https://github.com/fitzgen/bumpalo but it looks like it does not support allocating direct arrays. Should I allocate a vector like this:
use bumpalo::{Bump, collections::Vec};
let bump = Bump::new();
let mut v = Vec::new_in(&bump);
and get its slice every time I need it?
Problem is that I can't force the vector to have the exact size I want. My arrays always have a fixed size (size determined at runtime though). I think Vec is for things that grow in size.