Closed
Bug 1758625
Opened 4 years ago
Closed 4 years ago
Don't retrieve/include ownSymbols and privateProperties when they wouldn't be used
Categories
(DevTools :: Console, task)
DevTools
Console
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)
We're always fetching the private properties and symbols (devtools/server/actors/object/previewers.js#493-500) even if we might not use it (if we have more "regular" properties than OBJECT_PREVIEW_MAX_ITEMS).
We could delay retrieving those to when we actually need them.
In a similar fashion, we may want to not include the related properties if they would be empty, as the client should be handling that perfectly, and it would save some time for the JSActor communication
| Assignee | ||
Comment 1•4 years ago
|
||
This should help save some cycle in JSActor communication when logging objects.
The client handles those propery only when they are not falsy, so we don't need
to do anything there with this change.
Depends on D140603
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/79c696ca8002
[devtools] Only include ownSymbols(Length)/privateProperties(Length) in grip when there are some in the object. r=ochameau.
Comment 3•4 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox100:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•