import cost in bzr
Martin Pool
mbp at canonical.com
Thu May 18 09:35:32 BST 2006
On 16 May 2006, Alexander Belchenko <bialix at ukr.net> wrote:
> I do some experiments with bzrlib in interpreter session and eventually
> discover that execution of simple statement like:
>
> from bzrlib.workingtree import WorkingTree
>
> take a lot of time.
Yes, and thanks for bringing it up.
Robert mentioned a tool used by optparse which preprocesses during
installation several modules into one large module. Loading one large
module from bytecode is allegedly much faster than loading it piece by
piece.
However, that may be true only if we actually end up using most of the
code; for many invocations we possible will not. Also preprocessing it
in this way is just a bit kludgy.
--
Martin
More information about the bazaar
mailing list