Closed Bug 1631391 Opened 5 years ago Closed 4 years ago

Optimize implementation of nsTArray_Impl::ReplaceElementAt(index_type aIndex, const Item& aItem)

Categories

(Core :: XPCOM, task)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: sg, Assigned: sg)

References

Details

Attachments

(1 file)

Currently, nsTArray_Impl::ReplaceElementAt(index_type aIndex, const Item& aItem) is implemented using ReplaceElementsAt, which might not take advantage of the fact that it is known at compile time that the oldCount and newCount are the same (and 1).

Assignee: nobody → sgiesecke
Status: NEW → ASSIGNED
Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5ce3af9d7f6e Simplify implementation of ReplaceElementAt. r=xpcom-reviewers,nika
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: