Re: [PATCH 3/3] read-cache: avoid allocating every ondisk entry when writing

2017-08-21 Thread Junio C Hamano
Kevin Willford writes: > When writing the index for each entry an ondisk struct will be > allocated and freed in ce_write_entry. We can do better by > using a ondisk struct on the stack for each entry. > > This is accomplished by using a stack ondisk_cache_entry_extended > outside looping throug

[PATCH 3/3] read-cache: avoid allocating every ondisk entry when writing

2017-08-21 Thread Kevin Willford
When writing the index for each entry an ondisk struct will be allocated and freed in ce_write_entry. We can do better by using a ondisk struct on the stack for each entry. This is accomplished by using a stack ondisk_cache_entry_extended outside looping through the entries in do_write_index. On