CascadedProperties: Deferred properties should have inline capacity.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Dec 2013 15:24:10 +0000 (15:24 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Dec 2013 15:24:10 +0000 (15:24 +0000)
<https://webkit.org/b/125994>

Give CascadedProperties::m_deferredProperties an inline capacity
of 8 to sidestep malloc churn (0.2% of HTML5-8266 profile.)

Reviewed by Antti Koivisto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@160830 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/css/StyleResolver.cpp

index 2494cf7549ec99245676e88a9ebec5be8408dd19..8b813dc505fed6b490b35cecb0ad2ce37db048f0 100644 (file)
@@ -1,3 +1,13 @@
+2013-12-19  Andreas Kling  <akling@apple.com>
+
+        CascadedProperties: Deferred properties should have inline capacity.
+        <https://webkit.org/b/125994>
+
+        Give CascadedProperties::m_deferredProperties an inline capacity
+        of 8 to sidestep malloc churn (0.2% of HTML5-8266 profile.)
+
+        Reviewed by Antti Koivisto.
+
 2013-12-19  Andreas Kling  <akling@apple.com>
 
         Two small refinements to matched properties cache.
index 806d446b1b96986890e93cf95f06a139c8c4fb41..5cc9de7e12899117add67f13396e92ce39a74f98 100644 (file)
@@ -219,7 +219,7 @@ private:
     Property m_properties[numCSSProperties + 1];
     std::bitset<numCSSProperties + 1> m_propertyIsPresent;
 
-    Vector<Property> m_deferredProperties;
+    Vector<Property, 8> m_deferredProperties;
 
     TextDirection m_direction;
     WritingMode m_writingMode;