- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Mon, 09 Feb 2009 15:32:59 -0500
- 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 UTC