[Webkit-unassigned] [Bug 8177] Javascript search incredibly slow

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sat Jun 17 06:02:16 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=8177


ap at nypop.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #8882|                            |review?
               Flag|                            |




------- Comment #6 from ap at nypop.com  2006-06-17 06:02 PDT -------
Created an attachment (id=8882)
 --> (http://bugzilla.opendarwin.org/attachment.cgi?id=8882&action=view)
proposed patch

Use shared CollectionInfos for HTMLOptionsCollection and HTMLNameCollection,
too.

The test runs perfectly fast now. A test with 2000 options also runs fast (no
visible delay, a nice change from tens of seconds), but it still takes several
seconds to open, because the DOM version keeps changing, which defeats caching:
   for (var i=0; i < 2000; i++)
        document.fmain.user.options[i] = new Option("User " + i, i);

I couldn't understand why the other collections (images, applets, all etc.)
were returned from Document, but were only shared for HTMLDocuments. I just did
the same.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list