Closed
Bug 41180
Opened 25 years ago
Closed 25 years ago
unnecessary allocation from BufferContainsHTML
Categories
(Core :: DOM: HTML Parser, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: waterson, Assigned: rickg)
References
()
Details
(Keywords: arch, Whiteboard: fix in hand)
Bringing up an empty web page in viewer causes this to allocate ~3Kb of data, at
200 bytes a pop from nsString::Left(). Seems like this could be done more
efficiently without allocation, esp. using iterator APIs in the new string
stuff.
Trivial fix in hand. If you folks only knew how much time we spend trying to
eliminate string allocations in the parsing engine. :)
Status: NEW → ASSIGNED
Rewrote the routine to use more efficient string searches, and eliminated buffer
allocations.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified on 2001-07-19-branch on WinNT
Marking verified as per above developer comments.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•