Rev 3903: Remove the noisy debugging code. (down to 23.1s) in http://bzr.arbash-meinel.com/branches/bzr/brisbane/gc_delta_index_room
John Arbash Meinel
john at arbash-meinel.com
Thu Mar 19 06:22:13 GMT 2009
At http://bzr.arbash-meinel.com/branches/bzr/brisbane/gc_delta_index_room
------------------------------------------------------------
revno: 3903
revision-id: john at arbash-meinel.com-20090319062205-cy7f49htv3vet8g2
parent: john at arbash-meinel.com-20090319061549-fzk7na4uczpev2iy
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: gc_delta_index_room
timestamp: Thu 2009-03-19 01:22:05 -0500
message:
Remove the noisy debugging code. (down to 23.1s)
-------------- next part --------------
=== modified file 'bzrlib/diff-delta.c'
--- a/bzrlib/diff-delta.c 2009-03-19 06:15:49 +0000
+++ b/bzrlib/diff-delta.c 2009-03-19 06:22:05 +0000
@@ -221,16 +221,16 @@
hmask = hsize - 1;
- if (old_index) {
- fprintf(stderr, "Packing %d entries into %d for total of %d entries"
- " %x => %x\n",
- num_entries - old_index->num_entries,
- old_index->num_entries, num_entries,
- old_index->hash_mask, hmask);
- } else {
- fprintf(stderr, "Packing %d entries into a new index\n",
- num_entries);
- }
+ // if (old_index) {
+ // fprintf(stderr, "Packing %d entries into %d for total of %d entries"
+ // " %x => %x\n",
+ // num_entries - old_index->num_entries,
+ // old_index->num_entries, num_entries,
+ // old_index->hash_mask, hmask);
+ // } else {
+ // fprintf(stderr, "Packing %d entries into a new index\n",
+ // num_entries);
+ // }
/* First, see if we can squeeze the new items into the existing structure.
*/
fit_in_old = 0;
@@ -273,13 +273,13 @@
}
if (old_index) {
if (fit_in_old) {
- fprintf(stderr, "Fit all %d entries into old index\n",
- copied_count);
+ // fprintf(stderr, "Fit all %d entries into old index\n",
+ // copied_count);
/* No need to allocate a new buffer */
return NULL;
} else {
- fprintf(stderr, "Fit only %d entries into old index,"
- " reallocating\n", copied_count);
+ // fprintf(stderr, "Fit only %d entries into old index,"
+ // " reallocating\n", copied_count);
}
}
/*
@@ -529,9 +529,9 @@
hsize = old_index->hash_mask + 1;
}
hmask = hsize - 1;
- fprintf(stderr, "resizing index to insert %d entries into array"
- " with %d entries: %x => %x\n",
- num_entries, old_index->num_entries, old_index->hash_mask, hmask);
+ // fprintf(stderr, "resizing index to insert %d entries into array"
+ // " with %d entries: %x => %x\n",
+ // num_entries, old_index->num_entries, old_index->hash_mask, hmask);
memsize = sizeof(*index)
+ sizeof(*packed_hash) * (hsize+1)
@@ -830,7 +830,7 @@
entry, num_entries);
} else {
new_index = NULL;
- fprintf(stderr, "inserted %d without resizing\n", num_inserted);
+ // fprintf(stderr, "inserted %d without resizing\n", num_inserted);
}
free(entries);
return new_index;
More information about the bazaar-commits
mailing list