W3C home > Mailing lists > Public > www-style@w3.org > February 2009

Re: [css3-gcpm] Incompatibilities with css3-content

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 09 Feb 2009 15:32:59 -0500
Message-ID: <499092FB.50009@mit.edu>
To: Giovanni Campagna <scampa.giovanni@gmail.com>
CC: Håkon Wium Lie <howcome@opera.com>, www-style@w3.org

Giovanni Campagna wrote:
> How much memory does a new property need?

In a naive implementation, for each property, for each element you need 
to store the specified, computed, and used value.  An obvious 
optimization is to not store specified values for properties that are 
not actually specified, and to collapse computed and used values for all 
properties where the two do not differ (e.g. float would fall in this 
bucket).

For this particular case, the value seems to be able to fit into an 
integer of some sort without too much trouble, so the answer would seem 
to be "a few bytes per node", modulo optimizations involving sharing 
style data across nodes.

-Boris
Received on Monday, 9 February 2009 20:34:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:16 GMT