commit | eb08a9290f28e602ba035acfe8c2d3cd2b9965b0 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Jan 02 15:52:42 2018 -0800 |
committer | GitHub <noreply@github.com> | Tue Jan 02 15:52:42 2018 -0800 |
tree | becfaf86abbb67b91c01a2fef00e322fee5fa568 | |
parent | dbf52e02f18dac6f5f0a64f78932f3dc6efc056b [diff] |
coalesce GILless sections in new_buffersize (#5059) 830daae1c82ed33deef0086b7b6323e5be0b0cc8 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.