ROOT LD_LIBRARY_PATH makes SSHFS slow

Having installed root locally from source in linux, I set in my .bashrc

export ROOTSYS=~/CERN/root
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
export PATH=$PATH:$ROOTSYS/bin
export PYTHONPATH=$PYTHONPATH:$ROOTSYS/lib

When I sshfs (into lxplus) it is very slow. If I “time ls” it takes 3.0 to 4.0 real seconds. If I “uset LD_LIBRARY_PATH” and reconnect and “time ls” it takes 0.006 real seconds.

Is there any way to avoid or fix this problem, keeping ROOT working while having sshfs open?

Thanks!

I have solved my own problem.

The solution is to modify the LD_LIBRARY_PATH in the .bashrc:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib

should be simply:

export LD_LIBRARY_PATH=$ROOTSYS/lib

I’m not sure where I found the original syntax. ROOT and pyROOT still work fine with this modification.