[PATCH 3 of 3 V2] chgserver: add a config option to preload repo
Yuya Nishihara
yuya at tcha.org
Fri Mar 18 10:55:27 EDT 2016
On Fri, 18 Mar 2016 06:28:43 -0700, Jun Wu wrote:
> 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 ?
If mtime differs, filecache should be discarded by invalidateall().
Since the repo object in the main process never be updated, mtime would always
differ once you modified the repository.
> >> 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.
Hmm, it seems cold cache is still warmer in your case.
More information about the Mercurial-devel
mailing list