We have recently ran into an issue where creating a workspace using HistFactory took a very long time. We ran VTune profiling to try to identify if there is some issue in the preprocessing we do, but it turns out that most of the time is actually spent inside MakeModelAndMeasurementFast method of HistFactory.
You can find the VTune output folder here: CERNBox
Note that it will also show some custom libraries, but from the Bottom-up summary of VTune it should be clear that the hotspots come exclusively from HistFactory, namely from THashTable, THashList and TDirectory. We were wondering if this is the expected behaviour/performance when running the code.
The code was on on lxplus using:
ROOT Version: 6.26/04 Built for linuxx8664gcc on Jun 07 2022, 16:01:16 From tags/v6-26-04@v6-26-04
Since the actual workspace comes from an ongoing analysis, we cannot share it publicly, but we might be able to share it privately with the ROOT team if it helps.