OpenJDK (Java) migrating from Mercurial?
Marcus
mh-mercurial at online.de
Tue Nov 19 07:01:37 UTC 2019
Hi Arne
On 18/11/2019 22.19, Arne Babenhauserheide wrote:
> hg init testbranching
> cd testbranching
> echo 1>1; hg ci -Am zero
> echo 2>1; hg ci -Am one
> time for i in {2..100}; do echo $i > $i; hg update -q $((($i / 2))); hg branch -q b$i; hg ci -qAm $i; done
> time for i in {102..200}; do echo $i > $i; hg update -q $((($i / 2))); hg branch -q b$i; hg ci -qAm $i; done
>
>
> Though I have to say that I’m a bit surprised that this only does about
> one loop iteration per second. I remember hg being faster at this.
> Startup time is around 300ms on my machine, and I don’t have slow disks.
It is always puzzling me why the default install of Mercurial doesn't
include ‘chg’ (in contrib/chg of the source tar ball).
On my machine, aliasing it to ‘hg’ cuts down the execution time of your
testcase from ~22s per loop to ~4.2s per loop.
I am using this a lot in scripts that probably should have been
extensions in the first place.
Cheers,
Marcus
More information about the Mercurial
mailing list