Modify ↓
Ticket #4236 (closed bug: fixed)
Make sure $("#foo p") is as fast as $("#foo").find("p")
| Reported by: | john | Owned by: | john |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | selector | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Right now the latter is faster due to the context setting - the selector engine should be smart enough to set a proper context.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

This should be resolved now (or, at least, as close to being resolved as we can get) in SVN rev [6254].
I'm going to move on and optimize .find() now in attempt to squeeze some more performance out in bug #4240.