@federicomena wouldn't it be simpler and more efficient to do

pub struct SpecifiedValues {
props: Vec<(PropertyId, ParsedProperty)>

(Or even a hash map, but that might be less efficient)

@bugaevc hmmmmmm, yeah, you may be right. I was trying to have O(1) for "is this property set or not", but the array is so small anyway.

(I also want to see how SmallVec behaves with "large" elements like ParsedProperty...)

Regístrate para participar en la conversación

La red social del futuro: ¡Sin anuncios, sin vigilancia corporativa, diseño ético, y descentralización! ¡Sé dueño de tu información con Mastodon!