Closed tmontaigu closed 3 years ago
Use memoryviews + readinto when reading if possible, else fallback to the previous way.
When writing use memoryview to avoid temporarly copying the slice to bytes before calling python's write
Use memoryviews + readinto when reading if possible, else fallback to the previous way.
When writing use memoryview to avoid temporarly copying the slice to bytes before calling python's write