Title: [104009] trunk/Source/WebCore
- Revision
- 104009
- Author
- [email protected]
- Date
- 2012-01-03 21:51:02 -0800 (Tue, 03 Jan 2012)
Log Message
Minor speed improvement in HTML parser
https://bugs.webkit.org/show_bug.cgi?id=75517
Reviewed by Eric Seidel.
This improves the html-parser.html benchmark by 0.3%. I don't think
that's actually anything to write home about, but this patch makes me
feel better about my life.
* html/parser/HTMLFormattingElementList.cpp:
(WebCore::HTMLFormattingElementList::tryToEnsureNoahsArkConditionQuickly):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (104008 => 104009)
--- trunk/Source/WebCore/ChangeLog 2012-01-04 05:40:45 UTC (rev 104008)
+++ trunk/Source/WebCore/ChangeLog 2012-01-04 05:51:02 UTC (rev 104009)
@@ -1,3 +1,17 @@
+2012-01-03 Adam Barth <[email protected]>
+
+ Minor speed improvement in HTML parser
+ https://bugs.webkit.org/show_bug.cgi?id=75517
+
+ Reviewed by Eric Seidel.
+
+ This improves the html-parser.html benchmark by 0.3%. I don't think
+ that's actually anything to write home about, but this patch makes me
+ feel better about my life.
+
+ * html/parser/HTMLFormattingElementList.cpp:
+ (WebCore::HTMLFormattingElementList::tryToEnsureNoahsArkConditionQuickly):
+
2012-01-03 Kentaro Hara <[email protected]>
Remove temporary code that we've inserted to implement the [Supplemental] IDL incrementally
Modified: trunk/Source/WebCore/html/parser/HTMLFormattingElementList.cpp (104008 => 104009)
--- trunk/Source/WebCore/html/parser/HTMLFormattingElementList.cpp 2012-01-04 05:40:45 UTC (rev 104008)
+++ trunk/Source/WebCore/html/parser/HTMLFormattingElementList.cpp 2012-01-04 05:51:02 UTC (rev 104009)
@@ -135,7 +135,7 @@
{
ASSERT(remainingCandidates.isEmpty());
- if (!m_entries.size())
+ if (m_entries.size() < kNoahsArkCapacity)
return;
// Use a vector with inline capacity to avoid a malloc in the common case
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes