Req #71890 [NEW]: crc32c checksum algorithm
From: wookie at no-way dot org
Operating system:
PHP version: Next Minor Version
Package: hash related
Bug Type: Feature/Change Request
Bug description:crc32c checksum algorithm
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 bug report at https://bugs.php.net/bug.php?id=71890&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71890&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71890&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71890&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71890&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71890&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71890&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71890&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71890&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71890&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71890&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71890&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71890&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71890&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71890&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71890&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71890&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71890&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71890&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71890&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71890&r=mysqlcfg
Thread (3 messages)
- wookie at no-way dot org