michalc / stream-inflate

Uncompress Deflate and Deflate64 streams in pure Python (albeit compiled with Cython)
MIT License
11 stars 3 forks source link

perf: slightly faster retrieval from cache (with possible fix) #35

Closed michalc closed 2 months ago

michalc commented 2 months ago

There might be a fix in here as well, but have to admit not sure. The previous logic seemed a bit suspect in some cases, conflating dist and length.