Closed Bug 136640 Opened 22 years ago Closed 3 years ago

A nsTextFragment::Swap() method could optimize some nsGenericDOMDataNode methods

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

RESOLVED INACTIVE

People

(Reporter: jst, Unassigned)

References

Details

(Keywords: perf)

While reviewing the fix for bug 77585 it occured to me that the code that
appends text to a data node could be optimized even further if we had a Swap()
method on nsTextFragment. With that method we could create a text fragment on
the stack, swap the data in the current fragment into the one on the stack and
set the data in the current fragment to the data in the one on the stack plus
the new data with one string copy and one allocation in stead of using
ns[C]AutoString's and extra string copying.
Keywords: perf
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Depends on: 17191
Assignee: general → nobody
QA Contact: gerardok → general
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM → DOM: Core & HTML
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.