Python `import vtk` or any of its components takes awefully long
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
On my machine, importing a large Python package takes about 0.15s; e.g.:
$ time python -c 'import scipy'
real 0m0.163s
user 0m0.176s
sys 0m0.312s
$ time python -c 'import numpy'
real 0m0.135s
user 0m0.148s
sys 0m0.264s
As opposed to this, importing VTK takes really long:
$ time python -c 'import vtk'
real 0m1.086s
user 0m1.024s
sys 0m0.344s
This is even the case when only a tiny bit of VTK is imported:
time python -c 'from vtk import VTK_TRIANGLE'
real 0m1.075s
user 0m1.040s
sys 0m0.328s