Adding simdjson to PECL (faster json decoder)
[email protected] (tyson andre) Mon, 29 Aug 2022 13:21:42 +0000
| Newsgroups | php.pecl.dev |
|---|---|
| Message-ID | <DM6PR14MB41552207814E9357BC2153B1F9769@DM6PR14MB4155.namprd14.prod.outlook.com> |
Hi, I'd like to add https://github.com/crazyxman/simdjson_php to PECL. During a previous proposal to add simdjson to php-src, one of the major review comments was that people wanted to have it available as a PECL first to test it. - https://externals.io/message/112638 - https://github.com/php/php-src/pull/6551 https://github.com/crazyxman/simdjson_php offers around a 2x-3x speedup in decoding json (`simdjson_decode`), and 5x-10x speedup on validating json (`simdjson_validate`) on platforms supporting https://en.wikipedia.org/wiki/Single_instruction,_multiple_data depending on the data being decoded. - Sample benchmark results are available at https://github.com/crazyxman/simdjson_php/tree/master/benchmark Since then, I've - Addressed my own review comments on the php-src PR and added tests and become a maintainer of simdjson_php - Fixed Windows build issues and ZTS issues and set up tests of those platforms - Added optimizations Any objections to adding this as a PECL? Thanks, - Tyson