Title: [183661] trunk/Source/WTF
Revision
183661
Author
commit-qu...@webkit.org
Date
2015-04-30 18:38:27 -0700 (Thu, 30 Apr 2015)

Log Message

Decrease minimum Vector size.
https://bugs.webkit.org/show_bug.cgi?id=144453

Patch by Alex Christensen <achristen...@webkit.org> on 2015-04-30
Reviewed by Andreas Kling.

* wtf/Vector.h:
Make the default min size 4 to save memory on small Vectors.

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (183660 => 183661)


--- trunk/Source/WTF/ChangeLog	2015-05-01 01:14:20 UTC (rev 183660)
+++ trunk/Source/WTF/ChangeLog	2015-05-01 01:38:27 UTC (rev 183661)
@@ -1,3 +1,13 @@
+2015-04-30  Alex Christensen  <achristen...@webkit.org>
+
+        Decrease minimum Vector size.
+        https://bugs.webkit.org/show_bug.cgi?id=144453
+
+        Reviewed by Andreas Kling.
+
+        * wtf/Vector.h:
+        Make the default min size 4 to save memory on small Vectors.
+
 2015-04-30  Yusuke Suzuki  <utatane....@gmail.com>
 
         Use the default hash value for Symbolized StringImpl

Modified: trunk/Source/WTF/wtf/Vector.h (183660 => 183661)


--- trunk/Source/WTF/wtf/Vector.h	2015-05-01 01:14:20 UTC (rev 183660)
+++ trunk/Source/WTF/wtf/Vector.h	2015-05-01 01:38:27 UTC (rev 183661)
@@ -581,7 +581,7 @@
     }
 };
 
-template<typename T, size_t inlineCapacity = 0, typename OverflowHandler = CrashOnOverflow, size_t minCapacity = 16>
+template<typename T, size_t inlineCapacity = 0, typename OverflowHandler = CrashOnOverflow, size_t minCapacity = 4>
 class Vector : private VectorBuffer<T, inlineCapacity> {
     WTF_MAKE_FAST_ALLOCATED;
 private:
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to