Closed Bug 1633675 Opened 4 years ago Closed 4 years ago

Avoid copy of locales array in FluentBundle::Constructor

Categories

(Core :: Internationalization, task)

task

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: sg, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Similarly, LocaleService::AssignAppLocales and LocaleService::AssignRequestedLocales could also be changed to accept rvalues, and move.

Flags: needinfo?(emilio)

We were copying the string in C++, then again in Rust...

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/be666717ac3b
Avoid various string copies in FluentBundle constructor. r=zbraniecki
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77

Should it stay open as per comment 1?

No, I don't think we can easily avoid those.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: