Skip to content

Multitrheading in uproot 🧶 #515

Answered by jpivarski
CaetanoE asked this question in Q&A
Discussion options

You must be logged in to vote

A detailed description is here: https://uproot.readthedocs.io/en/latest/basic.html#parallel-processing

Unless your workflow is dominated by decompression, parallelization is not likely to accelerate it much because of Python's Global Interpreter Lock (GIL). That's why Coffea analyses usually parallelize by distributing among Python processes, rather than threads.

Uproot also doesn't do the plotting itself—the idea is that it's exclusively an I/O library—that's passed to hist, mplhep, Matplotlib, etc. If you're using RDataFrame for the bulk processing, you might find it easier to go directly to one of those libraries, rather than involving Uproot.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by CaetanoE
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants