#3574 new
Fabien Ménager

getUniqueElementID_IE slows down a lot IE8/9

Reported by Fabien Ménager | October 3rd, 2013 @ 02:34 PM

We noticed strong performance issues after upgrading from Prototype 1.7 to 1.7.1, and finally found that it was due to the new getUniqueElementID_IE function, which replaces getUniqueElementID by using the IE's uniqueID property.

It looks like a good idea at first sight except when updating an element containing thousands of elements, on which purgeElement is called, which calls stopObserving, etc finally accessing the uniqueID property which seems to be created when accessed, so it's a lot slower than a simple UID++.

Keeping the original code from getUniqueElementID changes nearly everything, by going drom 80s of purge to 1.2s.

I see no regression to do this, but would like to know if anybody noticed this problem before me.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket