kjdev / php-ext-snappy

Snappy Extension for PHP
Other
131 stars 36 forks source link

APCu serialization support #16

Closed andypost closed 4 years ago

andypost commented 4 years ago

Would be great to allow build it with apcu support (like igbinary doing) to allow use snappy as serialization for it

kjdev commented 4 years ago

https://github.com/kjdev/php-ext-snappy/tree/feature/apcu-serializer-support

Created a serializer for APCu in Snappy that incorporates PHP serialization and compression/decompression.

Does it match what you expect?

andypost commented 4 years ago

@kjdev thank you a lot! I did testing and getting following numbers for fresh Drupal

apc.serializer php vs snappy vs igbinary - performance mostly the same (no viable ups and downs) But comparing memory usage got snappy a leader! php - 1.1MB snappy - 643KB igbinary - 862KB

kjdev commented 4 years ago

Thanks for the confirmation.