Author: stefan2
Date: Mon Dec 26 23:44:23 2011
New Revision: 1224837

URL: http://svn.apache.org/viewvc?rev=1224837&view=rev
Log:
* subversion/libsvn_delta/xdelta.c
  (block): improve commentary

Suggested by: hwright

Modified:
    subversion/trunk/subversion/libsvn_delta/xdelta.c

Modified: subversion/trunk/subversion/libsvn_delta/xdelta.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_delta/xdelta.c?rev=1224837&r1=1224836&r2=1224837&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/xdelta.c (original)
+++ subversion/trunk/subversion/libsvn_delta/xdelta.c Mon Dec 26 23:44:23 2011
@@ -100,6 +100,11 @@ init_adler32(const char *data)
 struct block
 {
   apr_uint32_t adlersum;
+
+/* Even in 64 bit systems, store only 32 bit offsets in our hash table
+   (our delta window size much much smaller then 4GB).
+   That reduces the hash table size by 50% from 32to 16KB
+   and makes it easier to fit into the CPU's L1 cache. */
   apr_uint32_t pos;                    /* NO_POSITION -> block is not used */
 };
 


Reply via email to