Closed Bug 1753942 Opened 3 years ago Closed 3 years ago

Save some cycle in console

Categories

(DevTools :: Console, task)

task

Tracking

(firefox99 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

(Whiteboard: dt-console-perf-2022)

Attachments

(2 files)

Looking at profiles, there are small things showing up that we could avoid doing

The getter was showing up in a profile although it doesn't bring any value and
can safely be removed.

We're checking if the last message is the result of an evaluation in ConsoleOutput
so we can scroll to the bottom.
But in order to do that, we're turning the messages map into an array, only to get
its last element, which was showing up in profiles.
We can retrieve the last added message id through visibleMessages as evaluation
and their results are never filtered.

Depends on D137986

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4ca526bd1f7a [devtools] Remove MessageContainer defaultProps. r=dthayer. https://hg.mozilla.org/integration/autoland/rev/6955b2d62aa9 [devtools] Check isNewMessageEvaluationResult through visibleMessages.r=dthayer.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
Regressions: 1776262
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: