You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/10/29 17:22:30 UTC

svn commit: r1536792 - /subversion/branches/1.7.x/subversion/libsvn_fs_fs/fs_fs.c

Author: stefan2
Date: Tue Oct 29 16:22:29 2013
New Revision: 1536792

URL: http://svn.apache.org/r1536792
Log:
Reverting r1536786.

Modified:
    subversion/branches/1.7.x/subversion/libsvn_fs_fs/fs_fs.c

Modified: subversion/branches/1.7.x/subversion/libsvn_fs_fs/fs_fs.c
URL: http://svn.apache.org/viewvc/subversion/branches/1.7.x/subversion/libsvn_fs_fs/fs_fs.c?rev=1536792&r1=1536791&r2=1536792&view=diff
==============================================================================
--- subversion/branches/1.7.x/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/branches/1.7.x/subversion/libsvn_fs_fs/fs_fs.c Tue Oct 29 16:22:29 2013
@@ -78,13 +78,6 @@
 #define SVN_FS_FS_DEFAULT_MAX_FILES_PER_DIR 1000
 #endif
 
-/* Finding a deltification base takes operations proportional to the
-   number of changes being skipped. To prevent exploding runtime
-   during commits, limit the deltification range to this value.
-   Should be a power of 2 minus one.
-   Values < 1 disable deltification. */
-#define SVN_FS_FS_MAX_DELTIFICATION_WALK 1023
-
 /* Following are defines that specify the textual elements of the
    native filesystem directories and revision files. */
 
@@ -5490,16 +5483,6 @@ choose_delta_base(representation_t **rep
   count = noderev->predecessor_count;
   count = count & (count - 1);
 
-  /* Finding the delta base over a very long distance can become extremely
-     expensive for very deep histories, possibly causing client timeouts etc.
-     OTOH, this is a rare operation and its gains are minimal. Lets simply
-     start deltification anew close every other 1000 changes or so.  */
-  if (noderev->predecessor_count - count > SVN_FS_FS_MAX_DELTIFICATION_WALK)
-    {
-      *rep = NULL;
-      return SVN_NO_ERROR;
-    }
-
   /* Walk back a number of predecessors equal to the difference
      between count and the original predecessor count.  (For example,
      if noderev has ten predecessors and we want the eighth file rev,