Seguir

Reducing memory consumption in librsvg, part 4: compact representation for Bézier paths - people.gnome.org/~federico/blo

Reducción del consumo de memoria en librsvg, parte 4: representación compacta para las curvas de Bézier - people.gnome.org/~federico/blo

@federicomena do you find
.fold(0, |acc, cmd| acc + cmd.num_coordinates())
more readable than
.map(PathCommand::num_coordinates).sum()
?

@federicomena and
coords_slice.get_mut(0..n).unwrap()
is the same as
&mut coords_slice[..n]
right?

Sorry for nitpicking 😟, I'm just surprised to see these, and wondering why you chose them over (what would seem to me to be) clearer, and more commonly used alternatives.

@bugaevc basically because I am a dumbass :) Thanks for the cleanups! I've pushed them.

(... I scroll down the method list of Iterator and grab the first one that will do. Seriously. I guess fold comes before map/sum) 😄

Regístrate para participar en la conversación
MaSToDoN.MX

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!