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

Gadget io fewer calls to reading #2411

Merged
merged 5 commits into from
Jan 15, 2020

Conversation

matthewturk
Copy link
Member

As mentioned in #2383, we can speed things up a fair bit by reading fewer times from disk. I tested this with both this terse form and the longer version of x = c[:,0] etc and found them about the same.

What was happening was that each time we read from the dataset via __getitem__, we read from disk, and because we were striding it along a vector axis, we made it even worse. This formulation reads it once, then we grab views into that one read (post-casting) and use that. I get a fairly good speedup.

I've got a few merge commits, so merge & squash or something would probably be best here, if this passes muster.

@matthewturk matthewturk added performance demeshening Removing the global mesh for particles labels Jan 7, 2020
@matthewturk
Copy link
Member Author

I believe these errors are unrelated, and that this is likely ready for merging.

@jzuhone
Copy link
Contributor

jzuhone commented Jan 15, 2020

Should probably get one more set of eyeballs on it.

@ngoldbaum ngoldbaum merged commit 2e2cfc8 into yt-project:yt-4.0 Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
demeshening Removing the global mesh for particles performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants