Closed
Bug 222342
Opened 21 years ago
Closed 21 years ago
Speed up txStylesheet::isStripSpaceAllowed
Categories
(Core :: XSLT, defect)
Core
XSLT
Tracking
()
RESOLVED
FIXED
People
(Reporter: sicking, Assigned: sicking)
References
Details
(Keywords: perf)
Attachments
(1 file, 1 obsolete file)
1.70 KB,
patch
|
axel
:
review+
peterv
:
superreview+
|
Details | Diff | Splinter Review |
We can make txStylesheet::isStripSpaceAllowed faster for the (vastly common) case when there are no xsl:strip-space or xsl:preserve-space elements in the stylesheet. Right now txStylesheet::isStripSpaceAllowed has a fairly suboptimal route when called on a textnode, including getting the nodevalue and checking if the its whitespace data. patch comming up
Assignee | ||
Comment 1•21 years ago
|
||
This simply earlyreturns if we have no stripspace rules
Assignee | ||
Updated•21 years ago
|
Attachment #133363 -
Flags: superreview?(peterv)
Attachment #133363 -
Flags: review?(axel)
Assignee | ||
Comment 2•21 years ago
|
||
btw, I should mention that this patch was made possible by the landing of bug 199613, since before that we relied on txStylesheet::isStripSpaceAllowed to strip textnodes in the root of the document.
Status: NEW → ASSIGNED
Comment 3•21 years ago
|
||
Comment on attachment 133363 [details] [diff] [review] patch to fix oops, what happened? ;-)
Attachment #133363 -
Flags: review?(axel) → review+
Assignee | ||
Comment 4•21 years ago
|
||
this makes us return false for document-nodes. It won't make a difference since documents will never contain any textnodes, but this way we'll save the nodetype check in the code for //. http://lxr.mozilla.org/mozilla/source/extensions/transformiix/source/xpath/PathExpr.cpp#187
Assignee | ||
Updated•21 years ago
|
Attachment #133363 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Attachment #133363 -
Flags: superreview?(peterv)
Assignee | ||
Updated•21 years ago
|
Attachment #133430 -
Flags: superreview?(peterv)
Attachment #133430 -
Flags: review?(axel)
Updated•21 years ago
|
Attachment #133430 -
Flags: review?(axel) → review+
Updated•21 years ago
|
Attachment #133430 -
Flags: superreview?(peterv) → superreview+
Assignee | ||
Comment 6•21 years ago
|
||
checked in, thanks for reviews
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•