ooo-build r14441 - in trunk: . patches/test



Author: michael
Date: Fri Oct 31 12:40:11 2008
New Revision: 14441
URL: http://svn.gnome.org/viewvc/ooo-build?rev=14441&view=rev

Log:
2008-10-31  Michael Meeks  <michael meeks novell com>

        * patches/test/registry-speed.diff: 5-10% speedup on
        various tasks by avoiding typical store stupidity.



Added:
   trunk/patches/test/registry-speed.diff
Modified:
   trunk/ChangeLog

Added: trunk/patches/test/registry-speed.diff
==============================================================================
--- (empty file)
+++ trunk/patches/test/registry-speed.diff	Fri Oct 31 12:40:11 2008
@@ -0,0 +1,22 @@
+Index: source/regimpl.cxx
+===================================================================
+RCS file: /cvs/udk/registry/source/regimpl.cxx,v
+retrieving revision 1.28
+diff -u -p -r1.28 regimpl.cxx
+--- source/regimpl.cxx  11 Apr 2008 10:49:44 -0000      1.28
++++ source/regimpl.cxx  31 Oct 2008 12:37:17 -0000
+@@ -2168,6 +2174,14 @@ OUString ORegistry::resolveLinks(ORegKey
+     if ( path.getStr()[0] == '/' )
+         nIndex++;
+ 
++    // there are no symlinks in any registries we read these days ...
++    OUString hack = resolvedPath;
++    if (resolvedPath.getLength() <= 1)
++      hack = OUString();
++    hack += rtl::OUString::createFromAscii("/");
++    hack += path.copy(nIndex);
++    return hack;
++
+     do
+     {
+         token = path.getToken( 0, '/', nIndex );



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]