Req #71890 [Com]: crc32c checksum algorithm
| From: | lisachenko dot it at gmail dot com | Date: | Mon, 04 Jun 2018 15:48:08 +0000 |
| Subject: | Req #71890 [Com]: crc32c checksum algorithm | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215486@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71890&edit=1
ID: 71890
Comment by: lisachenko dot it at gmail dot com
Reported by: wookie at no-way dot org
Summary: crc32c checksum algorithm
Status: Open
Type: Feature/Change Request
Package: hash related
PHP Version: Next Minor Version
Block user comment: N
Private report: N
New Comment:
Bump, Apache Kafka also uses hardware-accelerated CRC32-c which is missed in PHP
Previous Comments:
------------------------------------------------------------------------
[2016-03-24 13:26:56] wookie at no-way dot org
Description:
------------
Hi I would like to use Castagnoli's crc32c checksum polynomial on a progressive stream, but it
does not seem to be available in hash_algo(). When dealing with streams crc32c generally performs
better as a checksum than normal crc32. It would be a nice (IMHO) algorithm feature to include.
It would be better that this gets implemented natively as it could take advantage of hardware
support if it exists. It is about 3x faster than crc32 in certain conditions and about 7-9x faster
when hardware assisted.
Just as an indicator of it's popularity:
Google seems to be also using crc32c in their cloud storage api:
https://cloud.google.com/storage/docs/gsutil/addlhelp/CRC32CandInstallingcrcmod
There is also an implementation for nodejs:
https://www.npmjs.com/package/fast-crc32c
tnx.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71890&edit=1