small perf improvement

This commit is contained in:
Elliott Pierce 2025-05-31 16:58:49 -04:00
parent 9cce28fe38
commit b415dc8325

View File

@ -932,6 +932,8 @@ impl Entities {
#[cold] // to help with branch prediction
fn expand(meta: &mut Vec<EntityMeta>, len: usize) {
meta.resize(len, EntityMeta::EMPTY);
// Set these up too while we're here.
meta.resize(meta.capacity(), EntityMeta::EMPTY);
}
let index = row.index() as usize;