[webkit-dev] FontPlatformData, FontCache and HashMap

Darin Adler darin at apple.com
Thu Feb 18 13:32:02 PST 2010


On Feb 18, 2010, at 12:28 PM, Stephan Assmus wrote:

> The "emptyValueIsZero" means the HashTable implementation will not call constructors for new slots. IMHO, this is a dangerous assumption, since the porters may not realize this and that this actually works is completely implementation specific.

It would be fine to add ifdefs to this so that it will do the optimization on all existing ports where it can be safely done and not do the optimization on future ports, assuming it’s not safe for any other port.

    -- Darin



More information about the webkit-dev mailing list