classification
Title: gzip.decompress performance can be improved with memoryviews
Type: performance Stage: resolved
Components: Library (Lib) Versions: Python 3.11
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: rhpvorderman
Priority: normal Keywords:

Created on 2021-11-23 07:04 by rhpvorderman, last changed 2021-11-29 14:40 by rhpvorderman. This issue is now closed.

Messages (2)
msg406816 - (view) Author: Ruben Vorderman (rhpvorderman) * Date: 2021-11-23 07:04
The current implementation uses a lot of bytestring slicing. While it is much better than the 3.10 and earlier implementations, it can still be further improved by using memoryviews instead.

Possibly. I will check this out.
msg406820 - (view) Author: Ruben Vorderman (rhpvorderman) * Date: 2021-11-23 07:35
Tried and failed. It seems that the overhead of creating a new memoryview object beats the performance gained by it.
History
Date User Action Args
2021-11-29 14:40:09rhpvordermansetstatus: open -> closed
stage: resolved
2021-11-23 07:35:58rhpvordermansetmessages: + msg406820
2021-11-23 07:04:34rhpvordermancreate