Closed Bug 1591491 Opened 6 years ago Closed 6 years ago

Use FakeString::ShareOrDependUpon more

Categories

(Core :: DOM: Bindings (WebIDL), task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(1 file)

We have various places that use FakeString::Rebind when they could share a stringbuffer instead; they predate ShareOrDependUpon existing.

If someone then saves the resulting string, this will let us avoid a copy.

Priority: -- → P1
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7e056a6f4792 Add more use of FakeString::ShareOrDependUpon. r=froydnj
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Blocks: 1591514
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: