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

Field selection for simple compound types #173

Merged
merged 2 commits into from
Mar 26, 2024

Conversation

mattjala
Copy link
Contributor

This currently has a massive performance issue with field reads. Reading 144 bytes in a field selection takes over a minute. The stall occurs when rsp.iter_content is invoked in base.py. Other calls that try to directly interact with the response, like rsp.text or rsp.content have a similar delay.

I tried manually specifying the utf-8 encoding for the response, since apparently having to try a bunch of encodings when one isn't specifying can sometimes cause slowdown like this, but it had no effect.

@mattjala mattjala requested a review from jreadey March 25, 2024 22:01
@mattjala mattjala self-assigned this Mar 25, 2024
@jreadey
Copy link
Member

jreadey commented Mar 26, 2024

It seems that h5pyd is trying to read more bytes than was actually sent.
See this PR: HDFGroup/hsds#331 - that should fix the issue.

@mattjala mattjala force-pushed the cmpd_field_selection branch from ac94574 to bd6fdc3 Compare March 26, 2024 15:54
@mattjala mattjala changed the title WIP: Field selection Field selection for simple compound types Mar 26, 2024
@mattjala mattjala marked this pull request as ready for review March 26, 2024 15:54
@mattjala
Copy link
Contributor Author

It seems that h5pyd is trying to read more bytes than was actually sent. See this PR: HDFGroup/hsds#331 - that should fix the issue.

This fixed the slowdown - this PR is ready for review now.

Copy link
Member

@jreadey jreadey left a comment

Choose a reason for hiding this comment

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

LGTM -- add logging to test_datatype.py to be consistent with other tests.

@jreadey jreadey merged commit b61fa0e into HDFGroup:master Mar 26, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants