Duy Nguyen <pclo...@gmail.com> writes:

> when no entry is reused). I kinda hope to avoid that.

I see.

> Speaking about
> reusing cache_entry, we won't be able to share cache_entry because
> when it's freed in replace_index_entry, or remove_index_entry_at in
> the main index, we need to locate the same entry in the shared index
> as well and remove that stale pointer. Without sharing, we nearly
> double memory usage from the beginning.

Yeah, the point being to have most of the entries come from the base
one, it is expected the real one and the saved base one will be
mostly the same, so sharing is really necessary.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to