Memory leak when processing RDataFrames in python loop

Hi @asopio ,

without a complete minimal reproducer that I can run, my guess is that the memory hogging comes from the code for the Filter expression that (in ROOT v6.18) is re-compiled at every loop (see e.g. How to delete RDataFrame and clean up memory - #2 by eguiraud ). Code that is just-in-time-compiled stays in memory until the end of the application. The amount of code generated at every new loop is much much smaller in more recent ROOT versions. Can you please try with ROOT v6.26.06? There should be a little increase, but nothing as dramatic as ~4MB per iteration.

Cheers,
Enrico