Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Implement `max_length` argument on `ZstdDecompressionObj::decompress()`

Đang mở
#176 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 10 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c, python
Lĩnh vực
api

Hướng nghiên cứu

Start at the ZstdDecompressionObj::decompress() entry point and compare its current API with Python 3.6's zlib Decompress.decompress() documentation. Trace how output buffers are allocated, then define completion as accepting an optional max_length argument and limiting decompressed output accordingly.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Python 3.6 added an optional max_length argument on decompressor's decompress() method. e.g. https://docs.python.org/3/library/zlib.html#zlib.Decompress.decompress.

This argument can reduce a lot of (but not all) of the performance badness in the API design of decompress() by allowing implementations to allocate a single output buffer of size max_length to avoid excessive memory allocations/copies.

We should support this optional argument.

Ngôn ngữ chính
C
Star
642
Fork
118
Merge trung bình
9 ngày 3 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của indygreg/python-zstandard

Tất cả issue của indygreg/python-zstandard

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.