Matt McCutchen's Web Site
/
rsync
/
rsync-patches.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6dca002
)
Improved a comment.
author
Wayne Davison
<wayned@samba.org>
Sat, 3 Nov 2007 07:20:12 +0000
(07:20 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 3 Nov 2007 07:20:12 +0000
(07:20 +0000)
dynamic_hash.diff
patch
|
blob
|
blame
|
history
diff --git
a/dynamic_hash.diff
b/dynamic_hash.diff
index
af065c1
..
4294ae3
100644
(file)
--- a/
dynamic_hash.diff
+++ b/
dynamic_hash.diff
@@
-43,8
+43,8
@@
To use this patch, run these commands for a successful build:
- if (!hash_table) {
- hash_table = new_array(int32, TABLESIZE);
+ /* Dynamically calculate the hash table size so that the hash load
- if (!hash_table) {
- hash_table = new_array(int32, TABLESIZE);
+ /* Dynamically calculate the hash table size so that the hash load
-+ * for big files is about 80%.
This number must be odd or s2 wil
l
-+ * not be able to span the entire set. */
++ * for big files is about 80%.
A number greater than the traditiona
l
++ *
size must be odd or s2 will
not be able to span the entire set. */
+ tablesize = (uint32)(s->count/8) * 10 + 11;
+ if (tablesize < TRADITIONAL_TABLESIZE)
+ tablesize = TRADITIONAL_TABLESIZE;
+ tablesize = (uint32)(s->count/8) * 10 + 11;
+ if (tablesize < TRADITIONAL_TABLESIZE)
+ tablesize = TRADITIONAL_TABLESIZE;