Re: [PATCH 1/3] cache-tree: Create/update cache-tree on checkout
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 30, 2014, 18:13 UTC
- Message-ID
- <xmqqa98uz2nx.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CACsJy8D8687QULRBZF_hvwASxOy5ekuPJ997xLSDX6HXDXgZnA@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
> I wonder if we should do this in !opts->force code path only. In the > opts->force code path we could use prime_cache_tree() (like > read-tree), which is supposedly faster...
Nobody sane should be constantly running "checkout -f", so even if priming from existing tree objects were faster, it would be adding complexity to the code to optimize for a wrong case.