I notice major slowdown of python on my Ubuntu Hardy system: python -c "" takes 150 ms to launch, and importing packages is very slow. The weird thing is that doing the same under a terminal outside my X session get me back reasonable numbers (~20 ms).
After a couple of sanity checks, I run python -c "" under strace under X and without X, and the diff essentially says:
> open("/home/david/.local/lib/tls/i686/sse2/cmov/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/tls/i686/sse2/cmov", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/tls/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/tls/i686/sse2", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/tls/i686/cmov/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/tls/i686/cmov", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/tls/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/tls/i686", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/tls/sse2/cmov/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/tls/sse2/cmov", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/tls/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/tls/sse2", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/tls/cmov/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/tls/cmov", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/tls/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/tls", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/i686/sse2/cmov/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/i686/sse2/cmov", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/i686/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/i686/sse2", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/i686/cmov/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/i686/cmov", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/i686/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/i686", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/sse2/cmov/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/sse2/cmov", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/sse2/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/sse2", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/cmov/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib/cmov", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
> open("/home/david/.local/lib/libpthread.so.0", O_RDONLY) = -1 ENOENT (No such file or directory)
> stat64("/home/david/.local/lib", 0xbfbddfbc) = -1 ENOENT (No such file or directory)
What can affect python to look into $HOME/.local ? Since my HOME is on NFS, I moved $HOME/.local on a local disk, but the problem is still the same. This makes python very painful to use - which is unfortunate as it is my main developement platform
nothing python specific