# RDataFrame and suitability for rapid iterative passes through datasets

**URL:** <https://root-forum.cern.ch/t/rdataframe-and-suitability-for-rapid-iterative-passes-through-datasets/64711>\
**Category:** ROOT\
**Tags:** rdataframe, root\
**Created:** [February 19, 2026, 10:42am UTC](https://root-forum.cern.ch/t/rdataframe-and-suitability-for-rapid-iterative-passes-through-datasets/64711 "2026-02-19T10:42:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [February 19, 2026, 1:56pm UTC](https://root-forum.cern.ch/t/rdataframe-and-suitability-for-rapid-iterative-passes-through-datasets/64711/3 "2026-02-19T13:56:10Z")

</div>

Vincenzo will give a clearer and more complete view, but a few quick points, from limited RDataFrame knowledge (I may be wrong in some of this! Hopefully Vincenzo or another expert will correct me if so):

- There is an overhead, and you’ll probably need many more events than 50k to notice differences.
- Also, RDataFrame can run in parallel (with ImplicitMT enabled), but again, you need a lot of data to make it worth it (see, e.g. [RDataFrame seems too conservative about spawning new threads](https://root-forum.cern.ch/t/rdataframe-seems-too-conservative-about-spawning-new-threads/64489))
- Your example has a Take.GetValue, and later a sum.GetValue, which I think is triggering 2 event loops, not the best for RDataFrame performance; [lazy and instant actions](https://root.cern/doc/master/classROOT_1_1RDataFrame.html#actions) should be planned carefully.

You can also check out the performace tips in the documentation: [ROOT: ROOT::RDataFrame Class Reference](https://root.cern/doc/master/classROOT_1_1RDataFrame.html#parallel-execution)

---

_[View the full topic](https://root-forum.cern.ch/t/rdataframe-and-suitability-for-rapid-iterative-passes-through-datasets/64711)._
