Closed Bug 497818 Opened 15 years ago Closed 7 years ago

[HTML5] Avoid hitting new/delete for nsString

Categories

(Core :: DOM: HTML Parser, enhancement, P4)

Other Branch
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1347737

People

(Reporter: hsivonen, Unassigned)

References

(Blocks 1 open bug)

Details

The string objects for attribute values, public ids and system ids shouldn't be heap-allocated. (The backing buffers of those string should be heap-allocated and adoptable by the DOM without further coping.)

In bug 487949 comment 27 Brendan Eich said:
"Sounds doable, we've had nsTAdoptingString or ancient XPIDLString stuff for
this kind of buffer hand-off."
Depends on: 499635
Priority: -- → P4
Blocks: 559327
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.