lazy index hashing

This delays the hashing of index names until it becomes necessary for
the first time.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2008-01-22 23:01:13 -08:00
parent cf558704fb
commit 9cb76b8cdc
2 changed files with 24 additions and 3 deletions

View File

@ -191,6 +191,7 @@ struct index_state {
struct cache_tree *cache_tree;
time_t timestamp;
void *alloc;
unsigned name_hash_initialized : 1;
struct hash_table name_hash;
};