Closed
Bug 574089
Opened 14 years ago
Closed 14 years ago
Optimize ::GetInnerHTML (part 1)
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(4 files, 2 obsolete files)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
jst
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
The patch makes us cache encoder and serializer, and also
keep a buffer in the encoder to which the string is appended.
Removes also few addref/release/qi.
I uploaded the patch to tryserver.
There are still other things to optimize, like getting attributes from elements in the serializer.
Assignee | ||
Comment 1•14 years ago
|
||
Simple testcase where the patch helps a lot (time drops to half), but more
is needed (and possible).
Assignee | ||
Updated•14 years ago
|
Attachment #453455 -
Attachment is patch: false
Attachment #453455 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 2•14 years ago
|
||
Comment on attachment 453454 [details] [diff] [review]
patch
Tryserver hasn't given any results, but I'll
test this locally.
Attachment #453454 -
Flags: review?(jst)
Assignee | ||
Updated•14 years ago
|
Attachment #453454 -
Attachment is obsolete: true
Attachment #453454 -
Flags: review?(jst)
Assignee | ||
Comment 3•14 years ago
|
||
Attachment #453700 -
Flags: review?(jst)
Assignee | ||
Comment 4•14 years ago
|
||
Still safer version. Clear the member variables in serializer ::Init.
Assignee: nobody → Olli.Pettay
Attachment #453700 -
Attachment is obsolete: true
Attachment #453709 -
Flags: review?(jst)
Attachment #453700 -
Flags: review?(jst)
Comment 5•14 years ago
|
||
Comment on attachment 453709 [details] [diff] [review]
patch
Looks good.
Attachment #453709 -
Flags: review?(jst) → review+
Assignee | ||
Comment 6•14 years ago
|
||
Assignee | ||
Comment 7•14 years ago
|
||
Oops, no need to clear the serializer always.
Updated•14 years ago
|
Attachment #454292 -
Attachment is patch: true
Attachment #454292 -
Attachment mime type: application/octet-stream → text/plain
Assignee | ||
Comment 8•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/22734aee7378
http://hg.mozilla.org/mozilla-central/rev/32d027dfd9be
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•