Skip to content

v1.1.0 - API Enhancements & Memory Optimizations

Choose a tag to compare

@geoff-davis geoff-davis released this 25 Nov 23:00
· 175 commits to main since this release

New Features

  • readlines() and writelines() - Bulk line operations for AsyncGzipTextFile, improving compatibility with standard file APIs
  • name property - Access the underlying filename on both AsyncGzipBinaryFile and AsyncGzipTextFile
  • Runtime checkable protocols - AsyncGzipBinaryFileProtocol and AsyncGzipTextFileProtocol now support isinstance() checks

Performance & Memory

  • __slots__ on both file classes for reduced memory footprint
  • Cookie cache eviction - Prevents unbounded memory growth during extensive seek operations
  • Configurable buffer threshold - BUFFER_COMPACTION_THRESHOLD class constant

Quality

  • Test coverage improved: 85% → 88% (253 tests)
  • CI coverage reporting via py-cov-action

Full Changelog: https://github.com/geoff-davis/aiogzip/blob/main/CHANGELOG.md