uproot's memory usage #1328
pfackeldey
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This post is an update on uproot's memory usage
The recent PR #1305 improved uproot's memory usage significantly. Before, memory was accumulating where it shouldn't, a comparison is shown in #1305 (comment).
The memory usage can be measured with the following setup:
Requirements
uproot
(including PR perf: removing output arrays from reference cycles so they don't have to wait for GC #1305)memray
absl-py
(for CLI args)Script
How to run (with GC disabled)
The resulting flame graph (with GC disabled) is as follows for each loop kind:

Uproot's memory consumption is stable (not growing) and follows an expected sawtooth structure 🎉
Beta Was this translation helpful? Give feedback.
All reactions