Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Add configure option to require simdjson PECL for faster json decoding #521

Open
TysonAndre opened this issue Oct 18, 2022 · 0 comments

Comments

@TysonAndre
Copy link
Contributor

See crazyxman/simdjson_php#86 for an example of how to call it when memcached is configured to use json - this would work when defined(SIMDJSON_PHP_VERSION_ID) && SIMDJSON_PHP_VERSION_ID >= 30000

https://github.com/crazyxman/simdjson_php/pull/86/files#diff-e40ddac25bf760132109ead4b3fd8bbb2ab571a5ed01d7eb841a2c81bf8d28d3

For decoding json, this is faster than php's bison-based parser in various use cases: https://github.com/crazyxman/simdjson_php/tree/master/benchmark#run-benchmark

Is this something you'd be interested in a PR for? (e.g. --enable-memcached-simdjson)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant