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)
Core
DOM: Core & HTML
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.
Reporter | ||
Comment 1•21 years ago
|
||
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Updated•15 years ago
|
Assignee: general → nobody
QA Contact: gerardok → general
Comment 2•6 years ago
|
||
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
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
Updated•3 years ago
|
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.
Description
•