2.3b2: Slow commands (several seconds) under SunOS / Sparc
Jari Aalto
jari.aalto at cante.net
Thu Nov 18 19:19:52 GMT 2010
2010-11-18 15:51 Roland Mas <lolando at debian.org>:
> Jari Aalto, 2010-11-18 15:35:49 +0200 :
>
>> The use of "." by default seems to contribute to the performance
>> problem. If I only knew why it is using it.
>
> There's a thread on debian-devel mentioning that a line such as
> "PYTHON_PATH=/foo/bar:$PYTHON_PATH" can end up with a value of
> "/foo/bar:" (with the second component being empty), and that Python
> interprets that as "/foo/bar:." (with a dot instead). Might be worth
> investigating.
Bingo! The evil was in:
PYTHONPATH="/usr/local/lib/python:$PYTHONPATH"
Where PYTHONPATH is empty string, causing the effect
PYTHONPATH="/usr/local/lib/python:"
Which strangely gets interepreted as if written:
PYTHONPATH="/usr/local/lib/python:."
|
Current dir
After taking care of this better, the bzr whomped in speed.
Thanks for everybody,
Jari
More information about the bazaar
mailing list