Closed
Bug 926180
Opened 11 years ago
Closed 11 years ago
UserInterface__getAllResults is SLOW
Categories
(Tree Management Graveyard :: TBPL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Swatinem, Assigned: Swatinem)
References
Details
Attachments
(1 file)
(deleted),
patch
|
emorley
:
review+
|
Details | Diff | Splinter Review |
When I was profiling in bug 920149 i noticed that UserInterface__updateFailingBuildsDisplay takes a lot of time due to the slowness in UserInterface__getAllResults.
There are 5 nested .forEach’s in there, which are really killing the performance.
Sacrificing a little memory usage in order to be able to quickly iterate over a linear array should be a good tradeoff.
Assignee | ||
Comment 1•11 years ago
|
||
So chromes profiles, devtools’ profiler and firebugs profiler all say a lot of different stuff and a lot of noise, but according to firebug this went down from ~240ms to ~23 ms, a 10x speedup! :-)
Comment 2•11 years ago
|
||
Comment on attachment 816344 [details] [diff] [review]
Use a flat results array
Review of attachment 816344 [details] [diff] [review]:
-----------------------------------------------------------------
Nice! Thank you :-)
Attachment #816344 -
Flags: review?(emorley) → review+
Comment 3•11 years ago
|
||
In production :-)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Webtools → Tree Management
Updated•10 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•