Hi, I've got code for inserting elements of a vector called
list into a tree. It splits the vector in half for the left and right node like:
let len = list.len(); left = Rc::new(BvhNode::new(&mut list[0..len / 2].to_vec())); right = Rc::new(BvhNode::new(&mut list[len / 2..].to_vec()));
I do this by taking slices and convert them back with
to_vec(). I'm assuming there's overheard doing vector->slice->vector so would it be possible to skip the slicing part and just get the subvector in one go?