On 5/29/14 8:39 AM, Simon Sapin wrote:
I’m aware that every style struct must contain either only inherited
properties, or only reset (non-inherited properties). Other than that,
what’s the guiding principle to decide how many structs to have, and
which properties go where? Why not have every longhand property in its
own "struct", sharable separately?

I assume because the overhead in terms of malloc bookkeeping and additional refcounts of sharing every longhand separately would reduce the memory savings caused by the scheme.

You'd also have reduced cache locality because properties would be scattered throughout memory to a greater degree.

Patrick

_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo

Reply via email to