Increase a fit performance (speed)

I wrote a code that perform a fit over few thousands of events with a complex pdf. This fit take long time before end, while a very similar code, always compiled with c++, but linking minuit library without using ROOT interface run 2 o 3 times faster.

Is it normal? if not how I can increment the speed: compiler optimization, ROOT options?

Thanks, Guido

Could you send a running copy of your two cases (with/without ROOT) ?


I need to do some rearrangements to send you the copy, but I’m interesting to know if this is common or not?

I’ll send the working copy soon.