Closed Bug 746872 Opened 8 years ago Closed 2 years ago

Console doing too much time in pruneConsoleOutputIfNecessary

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: bzbarsky, Unassigned)

References

Details

This is called on every console.log call.  It fetches preferences, does a slow querySelectorAll (in general, if you only want the first few elements in the list a getElementsByClassName will be _much_ faster, as long as you're careful to not get its .length), and forces layout computations.

For best results, coalescing calls to this across multiple log() calls would help with the layout stuff; the other parts just need optimizing.
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
Priority: -- → P2
This is an implementation detail of the old frontend, so we can close this as we don't prune the same way in the new frontend.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.