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

perf: avoid holding GIL in DeltaFileSystemHandler #1615

Merged
merged 6 commits into from
Sep 6, 2023

Conversation

wjones127
Copy link
Collaborator

@wjones127 wjones127 commented Sep 5, 2023

Description

I'm not sure yet this is the root cause of the performance issues we are seeing in #1569, but this seems like an obvious change that might help.

Any method that takes &mut self implicitly holds the GIL, so we'll need to allow threads explicitly in those methods.

Related Issue(s)

Documentation

@github-actions github-actions bot added the binding/python Issues for the Python package label Sep 5, 2023
@github-actions
Copy link

github-actions bot commented Sep 5, 2023

ACTION NEEDED

delta-rs follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

@wjones127 wjones127 changed the title investigate filesystem performance issues fix: avoid holding GIL in DeltaFileSystemHandler Sep 5, 2023
@wjones127 wjones127 changed the title fix: avoid holding GIL in DeltaFileSystemHandler perf: avoid holding GIL in DeltaFileSystemHandler Sep 5, 2023
@wjones127 wjones127 added this to the Python v0.10.2 milestone Sep 5, 2023
Copy link
Member

@rtyler rtyler left a comment

Choose a reason for hiding this comment

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

This makes sense to me but I cannot determine whether this Is A Good Way to solve this problem 😆

ship it

@wjones127 wjones127 merged commit 9928c3a into delta-io:main Sep 6, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/python Issues for the Python package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants