Closed Bug 926180 Opened 11 years ago Closed 11 years ago

UserInterface__getAllResults is SLOW

Categories

(Tree Management Graveyard :: TBPL, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Swatinem, Assigned: Swatinem)

References

Details

Attachments

(1 file)

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.
Attached patch Use a flat results array (deleted) — Splinter Review
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! :-)
Assignee: nobody → arpad.borsos
Status: NEW → ASSIGNED
Attachment #816344 - Flags: review?(emorley)
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+
Depends on: 931759
In production :-)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: