Title: [280771] trunk/Source/WebCore
Revision
280771
Author
hey...@apple.com
Date
2021-08-09 03:53:05 -0700 (Mon, 09 Aug 2021)

Log Message

Increase inline size of HTMLToken::Attribute::value
https://bugs.webkit.org/show_bug.cgi?id=228910
<rdar://problem/81686150>

Reviewed by Yusuke Suzuki.

Some attributes we encounter during HTML parsing are longer than 32
characters, and this shows up on profiles.

This patch improves Speedometer 2 by a modest amount (~0.3%).

* html/parser/HTMLToken.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (280770 => 280771)


--- trunk/Source/WebCore/ChangeLog	2021-08-09 10:53:05 UTC (rev 280770)
+++ trunk/Source/WebCore/ChangeLog	2021-08-09 10:53:05 UTC (rev 280771)
@@ -1,3 +1,18 @@
+2021-08-09  Cameron McCormack  <hey...@apple.com>
+
+        Increase inline size of HTMLToken::Attribute::value
+        https://bugs.webkit.org/show_bug.cgi?id=228910
+        <rdar://problem/81686150>
+
+        Reviewed by Yusuke Suzuki.
+
+        Some attributes we encounter during HTML parsing are longer than 32
+        characters, and this shows up on profiles.
+
+        This patch improves Speedometer 2 by a modest amount (~0.3%).
+
+        * html/parser/HTMLToken.h:
+
 2021-08-08  Jer Noble  <jer.no...@apple.com>
 
         REGRESSION: http/tests/preload/onload_event.html is a flaky timeout on Big Sur wk1 Release

Modified: trunk/Source/WebCore/html/parser/HTMLToken.h (280770 => 280771)


--- trunk/Source/WebCore/html/parser/HTMLToken.h	2021-08-09 10:53:05 UTC (rev 280770)
+++ trunk/Source/WebCore/html/parser/HTMLToken.h	2021-08-09 10:53:05 UTC (rev 280771)
@@ -55,7 +55,7 @@
 
     struct Attribute {
         Vector<UChar, 32> name;
-        Vector<UChar, 32> value;
+        Vector<UChar, 64> value;
 
         // Used by HTMLSourceTracker.
         unsigned startOffset;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to