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

improve performance of WepyHDF5.get_trace_fields #22

Open
salotz-sitx opened this issue Apr 13, 2021 · 0 comments
Open

improve performance of WepyHDF5.get_trace_fields #22

salotz-sitx opened this issue Apr 13, 2021 · 0 comments
Assignees
Milestone

Comments

@salotz-sitx
Copy link
Collaborator

This is naively implemented and for large sets of traces it is kind of inefficient.

We could implement a strategy that detects chunks of trace idxs that are contiguous in memory and read them in batches.

Should also implement a simple memoization strategy for duplicate entries.

Add a batch method which lets you pass in multiple traces with potentially redundant data to take advantage of the memoization and chunking. This will be fairly common for long lineage traces with common ancestors.

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

No branches or pull requests

2 participants