-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid unnecessarily taking the GIL when using ResampledReadableAudioF…
…ile. (#293) * Add special case to release the GIL when reading from a BytesIO object. * Fix tests. * Disable flakey test on underpowered machines. * Decrease test flakiness. * Disable flaky test on CI. * Skip on CI properly. * Ensure that we can't read past the end of a BytesIO buffer. * Use one of virtual or override. * Apply suggestions from code review Co-authored-by: David Rubinstein <[email protected]> * Simplify read math for PythonMemoryViewInputStream. * Fix type annotations in docs. * Avoid unnecessarily taking the GIL when using ResampledReadableAudioFile. * Apply suggestions from code review Co-authored-by: David Rubinstein <[email protected]> * Clang-format. --------- Co-authored-by: David Rubinstein <[email protected]>
- Loading branch information
1 parent
cd686d5
commit f72cb87
Showing
4 changed files
with
179 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.