Console spends too much time doing HS_regroupOutput

RESOLVED FIXED in Firefox 25

Status

P2
normal
RESOLVED FIXED
7 years ago
9 months ago

People

(Reporter: bzbarsky, Unassigned)

Tracking

unspecified
Firefox 25
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [fixed by bug 793996])

On every call to console.log() it looks like we call HS_regroupOutput.  This ends up evaluating a fairly slow selector on everything in the console, then steps through everything in the console and twiddles its classes.  This is one of the sources of the nodelist .length gets (one per loop iteration, instead of grabbing the length up front), and presumably the source of a lot of the .classList and class-changing stuff.

If there's any way this could be coalesced across multiple log() calls, that would probably help a lot.
Blocks: 778766
Priority: -- → P2
Depends on: 793996
bz, thank you for the bug report!

HS_regroupOutput() has been removed in bug 793996.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → FIXED
Whiteboard: [fixed by bug 793996]
Target Milestone: --- → Firefox 25

Updated

9 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.