[PATCH 3 of 3 V2] chgserver: add a config option to preload repo

Jun Wu quark at fb.com
Fri Mar 18 09:28:43 EDT 2016

On 03/17/2016 09:47 PM, Yuya Nishihara wrote:
> I mean filecache never be updated (i.e. have no/stale cache) because repository
> operation is done after fork().

Can they be invalidated in repo.invalidall ?

>>  From my profiling data. Skipping
>> reposetup()s seems to be the only way if we want trivial commands like
>> "hg bookmark" faster.
> Uh, is reposteup() such slow?

40ms in our case. I wrote a lightweight C tracer and it seems a lot of small 
stuffs added up to this value.

More information about the Mercurial-devel mailing list