Req #71890 [Opn->Csd]: crc32c checksum algorithm
| From: | nikic@php.net | Date: | Mon, 11 Mar 2019 09:19:59 +0000 |
| Subject: | Req #71890 [Opn->Csd]: crc32c checksum algorithm | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-219904@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
Updated by: nikic@php.net
Reported by: wookie at no-way dot org
Summary: crc32c checksum algorithm
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: hash related
PHP Version: Next Minor Version
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of bramp@google.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c79ce48ddb2125a3d19723e0fbca1bd770bacab7
Log: Fix #71890: Add support for crc32c Castagnoli's polynomial.
Previous Comments:
------------------------------------------------------------------------
[2019-03-04 04:29:33]
The following pull request has been associated:
Patch Name: Fix #71890: Add support for crc32c Castagnoli's polynomial.
On GitHub: https://github.com/php/php-src/pull/3913
Patch: https://github.com/php/php-src/pull/3913.patch
------------------------------------------------------------------------
[2018-06-04 15:48:06] lisachenko dot it at gmail dot com
Bump, Apache Kafka also uses hardware-accelerated CRC32-c which is missed in PHP
------------------------------------------------------------------------
[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