From 2b8378ffcf1a2af2ed8ed5675fd41a3a0d1a8a26 Mon Sep 17 00:00:00 2001 From: "mjs@apple.com" Date: Tue, 5 May 2009 05:37:50 +0000 Subject: [PATCH] 2009-05-04 Maciej Stachowiak 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 | 9 +++++++++ JavaScriptCore/wtf/Vector.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog index 75352fdb6f43..0b88888bb31a 100644 --- a/JavaScriptCore/ChangeLog +++ b/JavaScriptCore/ChangeLog @@ -1,3 +1,12 @@ +2009-05-04 Maciej Stachowiak + + 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 Windows build fix. diff --git a/JavaScriptCore/wtf/Vector.h b/JavaScriptCore/wtf/Vector.h index af91a641de2c..dcfeb29db40c 100644 --- a/JavaScriptCore/wtf/Vector.h +++ b/JavaScriptCore/wtf/Vector.h @@ -692,7 +692,7 @@ namespace WTF { } template - void Vector::resize(size_t size) + inline void Vector::resize(size_t size) { if (size <= m_size) TypeOperations::destruct(begin() + size, end()); -- 2.36.0