> I haven't really spent any time looking through the parsing engine, but
> wouldn't it be faster to find elements by ID and then filter by the tag?
>
>IIRC, that's what the selector engine does currently (that or something
>like it). "p#myId" used to take a very long time because it would go
>through every "p" and look for one with an id of "myId". I'm quite sure
>that jQuery doesn't do that anymore.

That obviously makes the most sense. Adding the tag element to the selector
would still slow things down (as it's extra processing--that may not be
needed.)

-Dan

Reply via email to