Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] find_unique_abbrev(): honor caller-supplied "len" better

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:45

Linus Torvalds [off-list ref] writes:
But it is somewhat expensive to calculate "max current uniqueness", so
I would suggest ditching the whole notion of "how many extra numbers
do I need for futureproofing", and go for just setting the absolute
value of DEFAULT_ABBREV.
Thanks; apparently our mails crossed...

I suspect that in a sane repository with set of reasonably packed objects,
we can cheaply get a rough estimate of the number of objects to about an
order of magnitude (e.g. "likely to have 10k to 100k objects"), and we
might able to come up with a way to automatically raise the default
length.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help