Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135488 - dev-util/mercurial should also optimise the extension's python files
Summary: dev-util/mercurial should also optimise the extension's python files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Andrew Ross (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-06-04 02:45 UTC by James Rowe
Modified: 2006-08-23 18:52 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mercurial-module_optimise.patch (mercurial-module_optimise.patch,434 bytes, patch)
2006-06-04 02:46 UTC, James Rowe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Rowe 2006-06-04 02:45:43 UTC
Currently the mercurial ebuild doesn't optimise the hgext python
directory, which can result in a severe slow down on startup if a user has
enabled any of the affected plugins.

  The attached patch fixes this by setting PYTHON_MODNAME, so the hgext dir
is considered too.

  It definitely isn't a scientific test but running "time for i in {0..100};
do hg help; done" yields a 75% speed up with the patch applied and the mq
extension enabled.  It makes a significant difference on my baby epia box,
but obviously much less on faster boxes.
Comment 1 James Rowe 2006-06-04 02:46:44 UTC
Created attachment 88328 [details, diff]
mercurial-module_optimise.patch
Comment 2 Andrew Ross (RETIRED) gentoo-dev 2006-08-23 18:52:19 UTC
Fixed in dev-util/mercurial-0.9.1-r1 - thanks for your contribution.