rootpy/rootpy — pull request #104 by pwaller (2012-11-30 02:43:40+00:00)
Title: Introduce rootpy/util/quickroot which can get to vital root symbols without finalSetup

This branch reduces the import time for all modules down from ~4s to 0.4s on my fast machine.

Everything still appears to work, too :D

It introduces a new module with a facade which will try to provide you with ROOT symbols
along with loading appropriate libraries. If you try to grab a symbol for which the
shared object with the appropriate symbols are not loaded, you will see a segfault.

$ time python -c "import rootpy.plotting, rootpy.tree"
real 0m4.516s
user 0m0.583s
sys 0m0.044s

$ git checkout quickroot
Switched to branch 'quickroot'
$ time python -c "import rootpy.plotting, rootpy.tree"

real 0m0.415s
user 0m0.362s
sys 0m0.029s