Skip to content

getUniqueElementID_IE slows down a lot IE8/9 #124

@jwestbrook

Description

@jwestbrook

previous lighthouse ticket #3574
by Fabien Ménager


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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions