Thread (19 messages) flat view 19 messages, 2 authors, 2016-07-25

Re: [RFC/PATCH 0/8] Add configuration options for split-index

From: Christian Couder <hidden>
Date: 2016-07-25 21:18:27

On Mon, Jul 25, 2016 at 6:04 PM, Duy Nguyen [off-list ref] wrote:
Hmm.. can you do the counting separately? A shared cache_entry must
have its field "index" greater than zero. By counting the number of
entries whose index is zero (i.e. not shared) against the total number
of real (*) entries, you should have a decent estimate when to split.
Then you can do exactly what "git update-index --no-split-index" and
"git update-index --split-index" sequence does, but in write_index().
It's easier than messing inside split-index.c. If we hit performance
problem, then we can look into changing split-index.c
Yeah, thanks for the suggestion. I will try it.
(*) remember that some entries may be marked CE_REMOVE, which are dead
entries and should not be counted because they will never be written
down on disk.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help