Bug Tracker

Modify

Ticket #4236 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

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

comment:1 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.