[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

mjs mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:38:32 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 2c80922183eedb91b1a1cd74e6e6d849054b17d8
Author: mjs <mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri May 7 16:51:56 2004 +0000

            Reviewed by Darin.
    
    	- two trivial changes for a 1% speedup, thanks to Shark
    
            * khtml/dom/dom_string.cpp:
            * khtml/dom/dom_string.h:
            (DOM::DOMString::~DOMString): inline this method because it's hot and the
    	function call overhead was very costly.
            * WebCore.pbproj/project.pbxproj: Add -falign-loops=16
    	optimization flag, as suggested by Shark.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6555 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 50fa7b7..284c86c 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,16 @@
+2004-05-06  Maciej Stachowiak  <mjs at apple.com>
+
+        Reviewed by Darin.
+
+	- two trivial changes for a 1% speedup, thanks to Shark
+	
+        * khtml/dom/dom_string.cpp:
+        * khtml/dom/dom_string.h:
+        (DOM::DOMString::~DOMString): inline this method because it's hot and the
+	function call overhead was very costly.
+        * WebCore.pbproj/project.pbxproj: Add -falign-loops=16
+	optimization flag, as suggested by Shark.
+
 2004-05-06  Chris Blumenberg  <cblu at apple.com>
 
 	Added alpha to DOMRGBColor as an extension.
diff --git a/WebCore/WebCore.pbproj/project.pbxproj b/WebCore/WebCore.pbproj/project.pbxproj
index 7871e3f..4dacba8 100644
--- a/WebCore/WebCore.pbproj/project.pbxproj
+++ b/WebCore/WebCore.pbproj/project.pbxproj
@@ -151,7 +151,7 @@
 				LIBRARY_SEARCH_PATHS = "";
 				LOCAL_SEG1_ADDR = 0x9000000;
 				MACOSX_DEPLOYMENT_TARGET = 10.2;
-				OPTIMIZATION_CFLAGS = "-Os";
+				OPTIMIZATION_CFLAGS = "-Os -falign-loops=16";
 				OTHER_CFLAGS = "$(DEBUG_CFLAGS) -DAPPLE_CHANGES";
 				OTHER_LDFLAGS = "-no-c++filt -umbrella WebKit";
 				PRECOMPILE_PREFIX_HEADER = YES;
diff --git a/WebCore/khtml/dom/dom_string.cpp b/WebCore/khtml/dom/dom_string.cpp
index 9b579b5..cc11612 100644
--- a/WebCore/khtml/dom/dom_string.cpp
+++ b/WebCore/khtml/dom/dom_string.cpp
@@ -82,11 +82,6 @@ DOMString::DOMString(const DOMString &other)
     if(impl) impl->ref();
 }
 
-DOMString::~DOMString()
-{
-    if(impl) impl->deref();
-}
-
 DOMString &DOMString::operator =(const DOMString &other)
 {
     if ( impl != other.impl ) {
diff --git a/WebCore/khtml/dom/dom_string.h b/WebCore/khtml/dom/dom_string.h
index 6eea718..fe68d5a 100644
--- a/WebCore/khtml/dom/dom_string.h
+++ b/WebCore/khtml/dom/dom_string.h
@@ -23,6 +23,7 @@
 #define _DOM_DOMString_h_
 
 #include <qstring.h>
+#include <xml/dom_stringimpl.h>
 
 namespace khtml {
     class Length;
@@ -56,7 +57,8 @@ public:
     DOMString(const QString &);
     DOMString(const char *str);
     DOMString(DOMStringImpl *i);
-    ~DOMString();
+    ~DOMString() { if(impl) impl->deref(); }
+
 
     // assign and copy
     DOMString(const DOMString &str);

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list