Skip to main content

Bug Tracker

Side navigation

#1403 closed bug (fixed)

Opened July 16, 2007 08:08PM UTC

Closed August 20, 2007 07:18AM UTC

Performance issues when creating and unbinding elements

Reported by: carlos.aguayo@gmail. Owned by: john
Priority: major Milestone: 1.1.4
Component: core Version: 1.1.3
Keywords: performance Cc: carlos.aguayo@gmail.com
Blocked by: Blocking:
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 (1)
  • sandbox.html (1.8 KB) - added by carlos.aguayo@gmail. July 16, 2007 08:09PM UTC.

    Test case

Change History (3)

Changed July 20, 2007 09:21PM UTC by brandon comment:1

owner: → brandon

Changed August 20, 2007 07:18AM UTC by john comment:2

owner: brandonjohn

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 August 20, 2007 07:18AM UTC by john comment:3

resolution: → fixed
status: newclosed