performance problem with hg 1.3 over ssh?

Stuart W. Marks smarks at smarks.org
Tue Jul 7 23:32:33 CDT 2009


I've noticed a severe performance degradation with hg 1.3 compared to 1.2.1. It 
occurs with the 1.3 Mac binary package I downloaded from mercurial.berkwood.com 
as well as with installations I've built from sources.

The problem occurs when pulling changes from a repo over ssh. For a moderately 
sized repo (14MB in .hg, 567 files), with 1.2.1 this operation takes less than 
8 seconds but with 1.3 it takes about 48 seconds! For larger repos the slowdown 
is proportional, a factor of 6x to 8x slower. The slowdown also occurs when 
doing incoming or clone, when the source repo is over ssh.

There is no slowdown when pulling/cloning over http or through the filesystem. 
Interestingly, there is also no slowdown when pushing changes over ssh, nor 
with cloning when the target repo is over ssh.

At first I thought I might have accidentally picked up the pure Python modules 
instead of the native ones, but running python -v verifies that things like 
osutil.so, bdiff.so, and mpatch.so are picked up instead of their pure Python 
equivalents. In addition, the module tracing shows that modules are picked up 
only from the proper places in /System/Library/Frameworks and 
/Library/Python/2.5/site-packages so it doesn't look to me like it's some kind 
of installation error.

I'm on MacOS 10.5.4, MacBook Pro 2.33GHz Core2duo.

Anybody else see this?

s'marks


More information about the Mercurial mailing list