Closed Bug 2086990 Opened 29 days ago Closed 28 days ago

Avoid creating intermediary arrays when dealing with Iterators

Categories

(DevTools :: General, task, P3)

task

Tracking

(firefox161 fixed)

RESOLVED FIXED
161 Branch
Tracking Status
firefox161 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

Iterator got new functions in the recent years (concat, filter, find, every, some, …), which means we can refactor some of our code where we use to create intermediary arrays to call such functions (e.g. [...this.activeTabs.keys()].some)

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/df577922b455 https://hg.mozilla.org/integration/autoland/rev/958815ad0a42 [devtools] Avoid creating intermediary array objects when dealing with Iterators. r=devtools-reviewers,ochameau.
Status: ASSIGNED → RESOLVED
Closed: 28 days ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch
QA Whiteboard: [qa-triage-done-c162/b161]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: