bug-findutils
[Top][All Lists]
Advanced

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

4.5.x: increase default optimisation level from 0 to 2.


From: James Youngman
Subject: 4.5.x: increase default optimisation level from 0 to 2.
Date: Sun, 16 Mar 2008 20:47:58 +0000

I just applied this change directly to the trunk.

I am also about to re-work my local git repositories to work from a
basis of the GNU git mirror rather than from repo.or.cz.   Once I've
done that I will return to sending patches before comitting them...


$ cvs -z3 diff -Dyesterday -upN  NEWS  configure.ac find/util.c ChangeLog
Index: NEWS
===================================================================
RCS file: /sources/findutils/findutils/NEWS,v
retrieving revision 1.241
retrieving revision 1.242
diff -u -p -r1.241 -r1.242
--- NEWS        10 Mar 2008 12:06:11 -0000      1.241
+++ NEWS        16 Mar 2008 20:43:37 -0000      1.242
@@ -1,6 +1,23 @@
 GNU findutils NEWS - User visible changes.     -*- outline -*- (allout)

-* Major changes in release 4.3.14-CVS
+* Major changes in release 4.5.0-CVS
+
+** Performance changes
+
+The default optimisation level for find is now -O2 instead of -O0,
+meaning that a number of additional optimisations are performed by
+default.   Current optimisations at each level are:
+
+0:     Perform -name, -path, -iname, -ipath before other checks.
+1:     Expressions containing only cost-free tests are evaluated
+        before expressions which contain more costly tests.
+2:     Bring forward all tests that need to know the type of a file
+        but don't need to stat it.
+3:     All tests are ordered by their estimated cost.
+
+Cost here is simply an estimate of how time consuming the I/O
+operations needed to make a test are.
+

 ** Bug Fixes

Index: configure.ac
===================================================================
RCS file: /sources/findutils/findutils/configure.ac,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -p -r1.12 -r1.13
--- configure.ac        15 Feb 2008 08:55:02 -0000      1.12
+++ configure.ac        16 Mar 2008 20:43:37 -0000      1.13
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-AC_INIT([GNU findutils], 4.3.14-CVS, address@hidden)
+AC_INIT([GNU findutils], 4.5.0-CVS, address@hidden)
 AC_CONFIG_AUX_DIR(build-aux)
 AM_INIT_AUTOMAKE

Index: ChangeLog
===================================================================
RCS file: /sources/findutils/findutils/ChangeLog,v
retrieving revision 1.322
retrieving revision 1.323
diff -u -p -r1.322 -r1.323
--- ChangeLog   10 Mar 2008 20:33:34 -0000      1.322
+++ ChangeLog   16 Mar 2008 20:44:13 -0000      1.323
@@ -1,3 +1,13 @@
+2008-03-16  James Youngman  <address@hidden>
+
+       * configure.ac: We're now working on the 4.5.x release series, so
+       change the version number.
+       * NEWS: Likewise.
+
+       * find/util.c (set_option_defaults): Use a default optimisation
+       level of 2 rather than 0.
+       * NEWS: Mention this change.
+
 2008-03-10  Justin Pryzby  <address@hidden> (tiny change)

        * doc/find.texi: Various typo corrections.
Index: find/util.c
===================================================================
RCS file: /sources/findutils/findutils/find/util.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -p -r1.51 -r1.52
--- find/util.c 10 Mar 2008 09:39:30 -0000      1.51
+++ find/util.c 16 Mar 2008 20:44:13 -0000      1.52
@@ -941,7 +941,7 @@ set_option_defaults(struct options *p)
     p->output_block_size = 1024;

   p->debug_options = 0uL;
-  p->optimisation_level = 0;
+  p->optimisation_level = 2;

   if (getenv("FIND_BLOCK_SIZE"))
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]