[PATCH] missing import for "socket"
Bryan O'Sullivan
bos at serpentine.com
Mon Jul 4 14:41:48 UTC 2005
On Mon, 2005-07-04 at 10:53 +0100, Michael A Fetterman wrote:
> The current tree is missing an import for "socket"...
This should be demand-loaded, as it's only used infrequently.
Here's a patch that moves a whole lot of imports into demand-load-land.
This speeds up hg by 10% in many simple cases.
There's a case to be made for demand-loading all modules for demandload
itself and those of the form "from foo import *". It's not always
helpful, but the overhead is tiny and it means you don't have to spend
precious minutes reasoning about whether some module should orshould not
be demand-loaded.
<b
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hg-more-demandloading.patch
Type: text/x-patch
Size: 1715 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20050704/46b11dce/attachment-0001.bin>
More information about the Mercurial
mailing list