See https://bugzilla.mozilla.org/show_bug.cgi?id=1698338 The reflow actor relies on a timer triggered every 300ms to emit new reflows and resize events: https://searchfox.org/mozilla-central/rev/526a5089c61db85d4d43eb0e46edaf1f632e853a/devtools/server/actors/reflow.js#305,324 The intent was probably to avoid spamming the client with too many events, but we could use throttling/debouncing instead of having a loop. With Fission, the DevTools server might be instantiated in several processes at the same time, so it makes sense to try to reduce the amount of unnecessary background work generated by DevTools. Blocking dt-fission-perf
Bug 1698958 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
See bug 1698338 The reflow actor relies on a timer triggered every 300ms to emit new reflows and resize events: https://searchfox.org/mozilla-central/rev/526a5089c61db85d4d43eb0e46edaf1f632e853a/devtools/server/actors/reflow.js#305,324 The intent was probably to avoid spamming the client with too many events, but we could use throttling/debouncing instead of having a loop. With Fission, the DevTools server might be instantiated in several processes at the same time, so it makes sense to try to reduce the amount of unnecessary background work generated by DevTools. Blocking dt-fission-perf