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: Support alternate serializers such as igbinary, msgpack, etc for arrays/objects #89

Open
TysonAndre opened this issue Jun 22, 2021 · 0 comments
Labels

Comments

@TysonAndre
Copy link
Contributor

Motivation:

  1. Speed up unserialization, reduce network traffic
  2. Allow storing more objects/arrays in the same amount of RAM on a memcached server.

A different PECL (memcached) does this through the use of an option defaulting to the php serializer for objects/arrays https://www.php.net/manual/en/memcached.constants.php . Memcached integer flags are used to store the serializer type in that PECL.

https://github.com/igbinary/igbinary

Igbinary is a drop in replacement for the standard php serializer. Instead of the time and space consuming textual representation used by PHP's serialize, igbinary stores php data structures in a compact binary form. Memory savings are significant when using memcached, APCu, or similar memory based storages for serialized data. The typical reduction in storage requirements are around 50%. The exact percentage depends on your data.

(I'm a maintainer of igbinary)

https://github.com/msgpack/msgpack-php

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

No branches or pull requests

2 participants