Tab completion (reading branches) hangs for several seconds in OfflineReader
If a MC (full size) file is opened in an interactive session and f.<TAB>
is pressed for tab-completion, it takes several seconds (~40s) until the Python interpreter is responsive again. It seems that parsing the branches takes very long.
Also the header is printed after the completion is done, above the current line.
[ins] In [1]: import km3io
[ins] In [2]: f = km3io.OfflineReader("mcv5.40.mupage_10G.sirene.jterbr00006769.jorcarec.aanet.1904.root")
DAQ 18037.6
can 0 472.7 299.7
coord_origin 0 0 0
cut_in 1 500000 -1 -0.087156
livetime 2200 3
norma 0 865600
physics HEMAS-DPM 07.01
propag MUSIC seawater 02.03
seabottom 2440
seed MUPAGE-MT19937 3 1422496207 0 0
simul MUPAGE 03.06-060918 191227 1252
simul_1 JSirene 12.1.0 12/27/19 12
start_run 1
[ins] In [3]: f.
best_reco header mc_hits
events hits mc_tracks
get_reco_fit keys tracks