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>
This commit is contained in:

committed by
Junio C Hamano

parent
407532f82d
commit
33f379eee6
@ -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];
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user