[webkit-dev] Optimizing DOMNode _nodeWith

Maciej Stachowiak mjs at apple.com
Mon Apr 24 12:58:15 PDT 2006


On Apr 24, 2006, at 11:24 AM, Timothy Hatcher wrote:

>
>> Does this all make sense?
>
> Yes, this makes sense to me. Others, like Maciej, might have a new  
> opinion since that comment was written a long time ago. I would  
> like to see before and after numbers when you have everything  
> changed over.
>

I think a better approach would be to make a hash table of function  
pointers, that will be faster than the log chain of if's. This is  
what is used to generate the elements in the first place.

Regards,
Maciej




More information about the webkit-dev mailing list