DAMP Perf improvement in objectexpand many instances
Categories
(DevTools :: Object Inspector, task, P3)
Tracking
(Not tracked)
People
(Reporter: jdescottes, Unassigned)
References
Details
There is an unexpected 30% perf improvement on console.objectexpand-many-instances, confirmed after doing a compare using only Bug 1499679:
Nicolas, you mentioned that this should not have improved the perf for this test. Do you want to investigate this and check if we haven't regressed the test or anything else?
Comment 1•5 years ago
|
||
I was able to confirm that the improvement was introduced by https://hg.mozilla.org/mozilla-central/rev/f1b290559447 , which is the server-side part of the patch.
It introduced an early return when the OBJECT_PREVIEW_MAX_ITEMS is reached, meaning we won't start iterate over the symbols (and avoid calling objectActor._propertyDescriptor, at least once), so that might explain the improvement on the test, which makes use of a lot of symbol properties.
| Reporter | ||
Comment 2•5 years ago
|
||
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #1)
I was able to confirm that the improvement was introduced by https://hg.mozilla.org/mozilla-central/rev/f1b290559447 , which is the server-side part of the patch.
It introduced an early return when theOBJECT_PREVIEW_MAX_ITEMSis reached, meaning we won't start iterate over the symbols (and avoid callingobjectActor._propertyDescriptor, at least once), so that might explain the improvement on the test, which makes use of a lot of symbol properties.
Thanks for the investigation, I don't think we will follow up on this in that case.
Description
•