Skip to content

Commit

Permalink
Add crc32c to README and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dpkp committed Dec 29, 2019
1 parent cf28da8 commit 31f846c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ To enable snappy compression/decompression install python-snappy (also requires
See <https://kafka-python.readthedocs.io/en/master/install.html#optional-snappy-install>
for more information.

Optimized CRC32 Validation
**************************

Kafka uses CRC32 checksums to validate messages. kafka-python includes a pure
python implementation for compatibility. To improve performance for high-throughput
applications, kafka-python will use `crc32c` for optimized native code if installed.
See https://pypi.org/project/crc32c/

Protocol
********

Expand Down
8 changes: 8 additions & 0 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ To enable LZ4 compression/decompression, install python-lz4:
>>> pip install lz4


Optional crc32c install
********************

To enable optimized CRC32 checksum validation, install crc32c:

>>> pip install crc32c


Optional Snappy install
***********************

Expand Down

0 comments on commit 31f846c

Please sign in to comment.