Closed Bug 1665293 Opened 4 years ago Closed 4 years ago

Call WebConsoleWrapper methods only once from WebConsoleUI.onResourceAvailable/Updated

Categories

(DevTools :: Console, enhancement)

enhancement

Tracking

(firefox83 fixed)

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

Today, WebConsoleUI methods call WebConsoleWrapper methods once per resource:
https://searchfox.org/mozilla-central/source/devtools/client/webconsole/webconsole-ui.js#405

  _onResourceAvailable(resources) {
    for (const resource of resources) {
      [...]
      this.wrapper.dispatchMessageAdd(resource);
    }
  }

But this is bad for batching as it forces to do one action per resource.
Having said that, WebConsoleWrapper is doing some batching itself in order to mitigate that.
But with the new throttling done in bug 1663614 this will be made unecessary!

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

This will ultimately help get rid of throttling done in WebConsoleWrapper
in favor of the upcoming one to be done from ResourceWatcher.

Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5055331a7b6e
Call WebConsoleWrapper methods only once from WebConsoleUI.onResourceAvailable/Updated. r=jdescottes
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d587f427a634
Call WebConsoleWrapper methods only once from WebConsoleUI.onResourceAvailable/Updated. r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: