2009-05-04 Maciej Stachowiak <mjs@apple.com>
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 May 2009 05:37:50 +0000 (05:37 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 5 May 2009 05:37:50 +0000 (05:37 +0000)
        Rubber stamped by Gavin.

        - inline Vector::resize for a ~1.5% speedup on string-tagcloud

        * wtf/Vector.h:
        (WTF::Vector::resize): Inline

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

JavaScriptCore/ChangeLog
JavaScriptCore/wtf/Vector.h

index 75352fdb6f43f9aca9d52271a56eeda01bda3e31..0b88888bb31a970b9b8e3e0766d4cf6334934a95 100644 (file)
@@ -1,3 +1,12 @@
+2009-05-04  Maciej Stachowiak  <mjs@apple.com>
+
+        Rubber stamped by Gavin.
+
+        - inline Vector::resize for a ~1.5% speedup on string-tagcloud
+
+        * wtf/Vector.h:
+        (WTF::Vector::resize): Inline
+
 2009-05-03  Steve Falkenburg  <sfalken@apple.com>
 
         Windows build fix.
index af91a641de2cb391390d9c9ec61bc16dff0d9e00..dcfeb29db40c7257ce862080c8d9ab7d5563ea96 100644 (file)
@@ -692,7 +692,7 @@ namespace WTF {
     }
 
     template<typename T, size_t inlineCapacity>
-    void Vector<T, inlineCapacity>::resize(size_t size)
+    inline void Vector<T, inlineCapacity>::resize(size_t size)
     {
         if (size <= m_size)
             TypeOperations::destruct(begin() + size, end());