Bug Tracker

Ticket #1403 (closed bug: fixed)

Opened 17 months ago

Last modified 16 months ago

Performance issues when creating and unbinding elements

Reported by: carlos.aguayo@… Owned by: john
Priority: major Milestone: 1.1.4
Component: core Version: 1.1.3
Keywords: performance Cc: carlos.aguayo@…
Needs: Review

Description

Look at the html page I provide. Test on IE7. If I use jquery-1.0.2: If I click on "create" and then on "destroy" several times, it takes in my computer around 280ms to do "create", and around 400ms to "destroy".

If I use jquery-1.1.3.1: The first time I click on "create" it takes around 1500ms. I click on "destroy" and then click again on "create", now it takes 2300ms. I click on "destroy" and click "create" again and this time I get a popup from IE7 asking me if I want to stop the script.

The only difference is the version of jquery that I use.

Attachments

sandbox.html (1.8 KB) - added by carlos.aguayo@… 17 months ago.
Test case

Change History

Changed 17 months ago by carlos.aguayo@…

Test case

Changed 17 months ago by brandon

  • owner set to brandon

Changed 16 months ago by john

  • owner changed from brandon to john

There's still some fluctuation, which is normal, but I appear to have solved this problem in another commit [2783] that I fixed (related to global events, bug #1463).

Demo: http://dev.jquery.com/~john/ticket/ajax/sandbox.html

Changed 16 months ago by john

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.