[issue1275] highlight extension is expensive to load
Patrick Mézard
mercurial-bugs at selenic.com
Mon Aug 25 02:35:00 CDT 2008
New submission from Patrick Mézard <pmezard at gmail.com>:
Highlight extension disabled:
$ time hg help > /dev/null
real 0m0.117s
user 0m0.049s
sys 0m0.067s
Highlight extension enabled:
$ time hg help > /dev/null
real 0m0.316s
user 0m0.187s
sys 0m0.125s
There is a bunch of exceptions made to demandimport and monkeypatching probably
forces pygments modules to be loaded at extension load time. One solution may be
to split the extension in two files and monkeypatch with stub functions.
----------
messages: 6840
nosy: pmezard
priority: bug
status: unread
title: highlight extension is expensive to load
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1275>
____________________________________________________
More information about the Mercurial-devel
mailing list