Closed Bug 505566 Opened 15 years ago Closed 15 years ago

Form control accessing loop that's zillions of times slower than chrome/safari

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 504784

People

(Reporter: dveditz, Unassigned)

References

()

Details

(Keywords: hang, perf)

According to a post on MozillaZine a simple 1500-iteration loop can hang Firefox while Chrome/Safari is "instantaneous" and IE8 is pretty fast. http://forums.mozillazine.org/viewtopic.php?f=25&t=1339175 <html><body> <form><textarea name="results"></textarea></form> <script type="text/javascript"> for (i=0;i<1500;i++) document.forms[0].results.value += "\nHello"; </script> </body></html> This is certainly a particular instance of a larger problem (which is probably already filed) but may be interesting as an apparently extreme example compared to webkit.
SessionStore may be partially to blame here. There are a bunch of bugs filed on textareas being slow to update in general, and bz's profiled similar testcases before so he probably knows the discrete issues there best.
Yeah, and in fact I've profiled this exact testcase.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.