Re: Index files autocompletion too slow in big repositories (w / suggestion for improvement)
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Apr 17, 2017, 08:03 UTC
- Message-ID
- <2304c00a-ed87-7119-3753-95f61bcf28f6@kdbg.org>
- In-Reply-To
- <xmqqefwrk7ao.fsf@gitster.mtv.corp.google.com>
Am 17.04.2017 um 06:05 schrieb Junio C Hamano:
Show 10 quoted lines
> Johannes Sixt <j6t@kdbg.org> writes: >> This is about command line completion. We go a long way to avoid >> forking processes there. What is 10x faster on Linux despite of >> forking a process may not be so on Windows. > > Doesn't this depend on how many paths there are? If there are only > a few paths, the loop in shell would beat a pipe into sed even on > Linux, I suspect, and if there are tons of paths, at some number, > loop in shell would become slower than a single spawning of sed on > platforms with slower fork, no?
Absolutely. I just want to make sure a suggested change takes into account the situation on Windows, not only the "YESSSS!" and "VERY WELL!" votes of Linux users ;)
-- Hannes