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

coalesce GILless sections in new_buffersize #5059

Merged
merged 1 commit into from Jan 2, 2018

Conversation

benjaminp
Copy link
Contributor

@benjaminp benjaminp commented Dec 31, 2017

830daae added some new GIL-releasing to new_buffersize. This is fine, but it's better to avoid reacquiring the GIL for as long as possible. Also, it should use FILE_(BEGIN|END)_ALLOW_THREADS to avoid having the file closed from under it.

830daae added some new GIL-releasing to new_buffersize. This is fine, but it's better to avoid reacquiring the GIL for as long as possible. Also, it should use FILE_(BEGIN|END)_ALLOW_THREADS to avoid having the file closed from under it.
pitrou
pitrou approved these changes Jan 2, 2018
Copy link
Member

@pitrou pitrou left a comment

This looks fine to me. Also I didn't know we had benjamin- branches in the main repo :-)

@benjaminp benjaminp merged commit eb08a92 into 2.7 Jan 2, 2018
@benjaminp benjaminp deleted the benjamin-coalesce-gil-release branch Jan 2, 2018
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.

None yet

4 participants