Closed Bug 1409097 Opened 8 years ago Closed 8 years ago

Remove the message-body-wrapper element from the DOM tree in the new console frontend

Categories

(DevTools :: Console, enhancement, P1)

enhancement

Tracking

(firefox57 wontfix)

RESOLVED WONTFIX
Tracking Status
firefox57 --- wontfix

People

(Reporter: bgrins, Assigned: bgrins)

Details

Attachments

(3 files)

We should be able to get faster mounting times in react if we flatten the DOM that we render. Here are some profiles with the test case: `for (var i = 0; i < 1000; i++) { console.log(i); }` No changes: https://perfht.ml/2kQRA1u Removed message-body-wrapper: https://perfht.ml/2kRaupb And the if you hold the right arrow on the tree and expand it all the way to the end you should see a final call to setValueForProperty. In the second, we are 4 levels further left, meaning 4 less function calls (590px indent instead of 630px indent at 10px spacing each). Note that this is dependent on the deepest tree also being the slowest path, but even after alt+clicking and scanning the trees it does appear that the latter doesn't have anything deeper. Also, flushBatchedUpdates does seem faster after doing a couple of profiles.
Attachment #8918952 - Flags: review?(nchevobbe) → review+
Comment on attachment 8919046 [details] Bug 1409097 - Remove the message-body-wrapper element from the new console frontend; Thanks for working on this Brian. There seems to have an issue with "attachments" (stacktrace, table, …) due to this change (i'll attach a screenshot in the next comment).
Attachment #8919046 - Flags: review?(nchevobbe) → review-
Maybe grid layout would help in this case.
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Priority: -- → P1
Whiteboard: [console-html][triage] → [reserve-console-html]
Brian, didn't we say yesterday that we should close this ?
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #8) > Brian, didn't we say yesterday that we should close this ? Yep, thanks
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Whiteboard: [reserve-console-html]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: