Hello,
I’ve recently noticed PyROOT often taking a very long time (20-30s, sometimes more) to do the first operation, e.g. a simple from ROOT import TROOT
in the environment I was working with (ATLAS software stack).
I’ve found that the amount of time the operation takes correlates with how many paths are in the LD_LIBRARY_PATH env var. When I stripped this down to just two paths (ROOT’s lib dir and the gcc lib dir) the import runs significantly faster (4-5 seconds max).
The startup time of root
(cling) doesn’t seem to be affected in the same way.
Is there something in PyROOT’s initialization that is involving it repeatedly looking for libraries in the library paths or otherwise interacting with the libraries in all these paths?