summaryrefslogtreecommitdiff
path: root/object-store.h
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-07-07 23:10:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-08 04:27:58 (GMT)
commit33f379eee63a0529f85079857598ac6325d3aec5 (patch)
tree010f6c4d388fbdeabfc5ba2e29cb9c7996004bab /object-store.h
parent407532f82d3fdfd18d4ec276ddeb359e7c724aa6 (diff)
downloadgit-33f379eee63a0529f85079857598ac6325d3aec5.zip
git-33f379eee63a0529f85079857598ac6325d3aec5.tar.gz
git-33f379eee63a0529f85079857598ac6325d3aec5.tar.bz2
make object_directory.loose_objects_subdir_seen a bitmap
There's no point in using 8 bits per-directory when 1 bit will do. This saves us 224 bytes per object directory, which ends up being 22MB when dealing with 100K alternates. Signed-off-by: Eric Wong <e@80x24.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object-store.h')
-rw-r--r--object-store.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/object-store.h b/object-store.h
index 6077065..ab6d469 100644
--- a/object-store.h
+++ b/object-store.h
@@ -22,7 +22,7 @@ struct object_directory {
*
* Be sure to call odb_load_loose_cache() before using.
*/
- char loose_objects_subdir_seen[256];
+ uint32_t loose_objects_subdir_seen[8]; /* 256 bits */
struct oid_array loose_objects_cache[256];
/*