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

Cache the result of _identify_fields to improve dataset initialization speed #2271

Merged
merged 1 commit into from
Jun 11, 2019

Conversation

saethlin
Copy link
Contributor

This is a follow-on to #2146; I'm trying to cut down the overhead of yt to increase its usability in similar-looking applications (datasets >10 GB, but few operations on the dataset).

This PR halves the runtime of scripts such as mentioned in #2146 on our system, for 4-file MassiveFIRE snapshots. On such snapshots yt used to redundantly scan the backing HDF5 files 243 times for what Datasets they contain.

This halves the runtime of scripts like in yt-project#2146 for MassiveFIRE
snapshots when run on HiPerGator's lustre filesystem.
On such snapshots yt used to redundantly scan the backing HDF5
files 243 times for what Datasets they contain.
@welcome
Copy link

welcome bot commented Jun 11, 2019

Hi! Welcome, and thanks for opening this pull request. We have some guidelines for new pull requests, and soon you'll hear back about the results of our tests and continuous integration checks. Thank you for your contribution!

@matthewturk
Copy link
Member

Clever idea! Thanks for submitting this. It looks good to me!

Copy link
Member

@brittonsmith brittonsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@jzuhone jzuhone self-requested a review June 11, 2019 14:32
@jzuhone jzuhone merged commit fff13f1 into yt-project:yt-4.0 Jun 11, 2019
@welcome
Copy link

welcome bot commented Jun 11, 2019

Hooray! Congratulations on your first merged pull request! We hope we keep seeing you around! 🎆

@dnarayanan
Copy link
Contributor

nice work @saethlin !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants