# Speed of storing columnar data

**URL:** <https://root-forum.cern.ch/t/speed-of-storing-columnar-data/55323>\
**Category:** Newbie\
**Created:** [June 16, 2023, 12:17am UTC](https://root-forum.cern.ch/t/speed-of-storing-columnar-data/55323 "2023-06-16T00:17:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![clu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/22d042/32.png) [@clu](https://root-forum.cern.ch/u/clu)\
**Post date:** [June 16, 2023, 12:17am UTC](https://root-forum.cern.ch/t/speed-of-storing-columnar-data/55323/1 "2023-06-16T00:17:29Z")

</div>

Hello!

I am quite new to ROOT and trying to determine if this would be a good framework for a project I have. I have a device that is producing packets of binary data at a rate of GB/s, and I need to store this data into some kind of file as quickly as possible. ROOT files seem to have a lot of nice features, specifically GB/s reading and being a compressed binary format, but I was wondering how quickly ROOT can store tabular data?

Thanks!

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 16, 2023, 5:46am UTC](https://root-forum.cern.ch/t/speed-of-storing-columnar-data/55323/2 "2023-06-16T05:46:47Z")

</div>

Hi @clu ,

welcome to the ROOT forum.  
@pcanal or @Axel can comment with more authority, but as far as I know the bottleneck is typically data compression or the disk writing bandwidth, not ROOT itself.

(If your application is multi-threaded, the simplest way to not create synchronization bottlenecks is to have each thread write a different file, but there are also solutions for multi-thread writing to the same file).

I hope this helps!  
Enrico

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [June 16, 2023, 6:53am UTC](https://root-forum.cern.ch/t/speed-of-storing-columnar-data/55323/3 "2023-06-16T06:53:10Z")

</div>

Not much to add 🙂

The fastest writing you get is to write uncompressed blobs of your raw bytes to raw `FILE`s (or `mmap`ped etc). Use ROOT if you want to write structured, columnar data.

---

<div class="post-metadata">

**Author:** ![clu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/22d042/32.png) [@clu](https://root-forum.cern.ch/u/clu)\
**Post date:** [June 16, 2023, 4:25pm UTC](https://root-forum.cern.ch/t/speed-of-storing-columnar-data/55323/4 "2023-06-16T16:25:04Z")

</div>

Got it, thank you and @eguiraud !
