Closed Bug 1606958 Opened 5 years ago Closed 5 years ago

Determine whether we need FakeString or equivalent instead of nsAutoCString for UTF8String

Categories

(Core :: DOM: Bindings (WebIDL), defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(1 file)

In bug 1449861 I used plain nsAutoCString because the callees were using NS_ConvertUTF16ToUTF8, which is already an nsAutoCString subclass. So we're not paying more for that than we used to.

However, Boris points that we created FakeString because nsAutoString was a bit too slow for bindings. We should profile and determine whether we need to make FakeString generic over the char type.

Or we should probably just do that, as it's not much code I suspect.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/05d084629569 Use FakeString for UTF8String. r=bzbarsky

It was a legit failure, revised the patch.

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4c8fdaf26a72 Use FakeString for UTF8String. r=bzbarsky,froydnj
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: