Closed Bug 1758624 Opened 3 years ago Closed 3 years ago

ObjectActor#_populateGripPreview could be faster

Categories

(DevTools :: Console, task)

task

Tracking

(firefox100 fixed)

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-console-perf-2022)

Attachments

(1 file)

Logging an object shows that extra time is spent in unrelated previewers functions (Error, ArrayLike, …). There should be room for improvement here

Accessing DebuggerObject.class is showing up in profile as it's a getter; since
we pass the grip to the previewers, and given we put a class property on the
grip, we can query that property instead in previewers to avoid calling the
getter.
We also don't use object destructuring in some function signatures as it's
doing extra work we might end up not needing if the previewer isn't the one
that should be used for the object.

Depends on D139570

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c4eb9bf9760a [devtools] Make Object previewers faster. r=bomsy.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: