Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow loading of file into arrays. #1314

Open
JoyYTZhou opened this issue Oct 14, 2024 · 1 comment
Open

Slow loading of file into arrays. #1314

JoyYTZhou opened this issue Oct 14, 2024 · 1 comment
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged

Comments

@JoyYTZhou
Copy link

Hi all,

I've recently experienced an issue with uproot.open('someNANOAOD12.root:Events').arrays(lib='ak'). The file I am experimenting with only has 680 entries and a size of 4.053MB. I am timing only the operation of getting the arrays for the tree object, and it takes 20.8 seconds.

I never had such issues before with much larger files with some older version of uproot (I think it was still 5 but a particular release). I am now using version 5.4.1. I am not sure if it's an issue with uproot or awkward. I am leaning toward it being an uproot error since I've had my awkward version fixed in virtual env.

Any help would be appreciated!

@JoyYTZhou JoyYTZhou added the bug (unverified) The problem described would be a bug, but needs to be triaged label Oct 14, 2024
@nikoladze
Copy link
Contributor

680 entries does not immediately sound like it would be affected by this, but maybe you can check if #1320 fixes your issue. You can also check if using uproot.open(..., handler=uproot.MemmapSource) (for versions before that #1320) improves your performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants