[MERGE] Small tweaks to cleanup imports
John Arbash Meinel
john at arbash-meinel.com
Thu Jul 10 21:28:41 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Colin D Bennett wrote:
| On Wed, 09 Jul 2008 15:04:18 -0500
| John Arbash Meinel <john at arbash-meinel.com> wrote:
|
|> This is just a couple of tweaks to some imports, to move more things
|> into being lazily loaded.
|>
|> I noticed because the time for "bzr nick" was surprisingly long. On
|> the plus side, while this is noticeable for the installed bzr (1.5),
|> it is a *lot* better for 1.6b3. (About 500+ms => 130ms).
|>
|> Overall, this doesn't make things a huge amount better, but I did the
|> work, so we might as well merge it.
|>
|> Ok... weird. I just removed all of bzr and reinstalled (for other
|> reasons). It was running really slow until I ran "sudo bzr nick".
|> After that, the global installed version seems to be a lot faster.
|> Uninstalling and re-installing doesn't seem to trigger the bug.
|>
|> I wonder if somehow my system decided that the .pyc files were out of
|> date, and it was re-compiling each run. Until I ran 'sudo bzr'. But
|> then why wouldn't uninstalling and re-installing trigger this?
|
| I don't know what package manager you're using, but if running 'bzr'
| automatically generated the .pyc files (which were NOT installed as
| part of the package), then uninstalling the bzr package will probably
| not delete the .pyc files.
|
| Just a theory.
|
| Regards,
| Colin
|
|> John
|> =:->
I'm using apt, the bzr package is being installed into the
'python-central' location, with symlinks from
/usr/lib/python2.5/site-packages/bzrlib/foo.py => central location.
The .pyc files show up under site-packages. And when I uninstall the
entire 'bzrlib' directory is gone.
Now, it is possible that the first time I did a plain "apt-get update"
which installed a newer bzrlib package on-top-of the existing one, and
failed to recompile the .pyc files. Which would mean that they exist,
but are all out of date.
At least, that is the closest thing I can come up with for the behavior
I was seeing.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkh2cPkACgkQJdeBCYSNAAM4agCgu3pPUYzNNcSRqaWk7zlN6LQ9
xGIAn26+rQPy1jmUdKlwIY9L+FxZlBNt
=WGiU
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list