Disable autoparsing

Is there a way to disable autoparsing headers at run time in a compiled root program?

Hi,

yes, there is: https://root.cern.ch/doc/master/classTCling.html#aa43b56fc9f543296d4e74f15119fc52b
The point is whether you really need to de-activate the featureā€¦

Cheers,
P

Hello,

Thanks.

The main reason for wanting to disable autoparsing is that on some batch
nodes, not all required headers are available. Therefore, we want all
required dictionaries generated at compile time.

A secondary reason is saving resources (especially memory) at run time.

Herb

Hi Herb,

I think parsing is triggered by interactive usage of classes. W/o interactive usage there is no parsing and w/o parsing interactice usage is impossible. In summary, it seems that if you do not have any bit of interpreted code in your executable, I think parsing will not happen (not even for IO, not even for any interrogation of the type system which does not involve getting lists of functions or methods).

I hope this helps,
P

The other case where autoparsing can be triggered in the case of missing dictionary of a classes of objects being stored.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.