[PATCH 3 of 3 V2] chgserver: add a config option to preload repo
Yuya Nishihara
yuya at tcha.org
Fri Mar 18 00:47:11 EDT 2016
On Thu, 17 Mar 2016 07:59:27 +0000, Jun Wu wrote:
> On 03/17/2016 01:13 AM, Yuya Nishihara wrote:
> > But the cached repo would be useless once the repository is modified,
> > because the server forks per connection, right?
> >
> > I don't think this caching strategy would work well.
>
> There is repo.invalidateall() in commandserver.py. So I guess it is designed to
> work, although it needs more attention.
I mean filecache never be updated (i.e. have no/stale cache) because repository
operation is done after fork().
> 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?
More information about the Mercurial-devel
mailing list