Dear ROOT gurus,
I faced many times the case of having hundreds of root files to merge, each containing hundreds of objects (trees and hists mostly) split in different directories, some in common with other files, some existing in only one or few files, and hadd would take ages (several hours) to merge something amounting to only a few hundreds of MB at the end.
I believe that this is related to run
when thousands of objects are involved.
Although there may be ways to improve the picture by changing this line, I'd like to make another suggestion that would very likely help the situation for me: could you please consider adding an option that would restrict the recursive call at
to the part of 'sourcelist' that actually contains the parent folder ?
I don't mean to make this the default behaviour (one would need to benchmark it) but for sure in some cases it would help since every loop in the subsequent recursive calls would be 'shorter'.
Note that this would not change much the time spent on looking for a 'key' in 'allNames' but that would already be a good CPU time saving I think.
What do you think ?
Thank you in advance for your answer,