[php-src] PR #20513: ext/hash: optional support for the crc-fast library

From: Date: Mon, 17 Nov 2025 14:41:11 +0000
Subject: [php-src] PR #20513: ext/hash: optional support for the crc-fast library
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34084@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20513 Author: m6w6 > crc-fast: https://github.com/awesomized/crc-fast-rust ``` crc-fast-rust$ make install DESTDIR=usr php-src$ ./configure --with-crc-fast=$(pwd)/../crc-fast-rust/usr && make test TESTS=ext/hash ``` Dramatically increases the performance of all CRC-32 calculations on x86_64 and aarch64 platforms. The latest version of crc-fast (1.6.0 as of this writing) can exceed 110GiB/s on modern hardware. Adds CRC-64 support (both NVME and ECMA-182 variants, the two most popular, used in places like the Linux kernel, AWS S3, etc.), including software fallbacks if the crc-fast library isn’t used. Adds improved industry-standard naming for PHP’s supported CRC-32 variants, since PHP supports both standard (CRC-32/ISCSI and CRC-32/ISO-HDLC) and non-standard calculations but uses confusing, non-standard, and inconsistent naming (crc32() and hash(‘crc32’) are not the same thing!). The older, non-standard, confusing names can be deprecated at some point in the future, if desired.

« previous php.git-pulls (#34084) next »