Bug Tracker

Opened 16 years ago

Closed 16 years ago

#1403 closed bug (fixed)

Performance issues when creating and unbinding elements

Reported by: [email protected] Owned by: john
Priority: major Milestone: 1.1.4
Component: core Version: 1.1.3
Keywords: performance Cc: [email protected]
Blocked by: Blocking:


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- 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 (1)

sandbox.html (1.8 KB) - added by [email protected] 16 years ago.
Test case

Download all attachments as: .zip

Change History (4)

Changed 16 years ago by [email protected]

Attachment: sandbox.html added

Test case

comment:1 Changed 16 years ago by brandon

Owner: set to brandon

comment:2 Changed 16 years 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

comment:3 Changed 16 years ago by john

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.