News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ilia Alshanetsky's Blog:
Igbinary, The great serializer
November 20, 2009 @ 10:38:16

In looking for a better way to handle serialized data (than the usual serialize) Ilia Alshanetsky discovered an extension called Igbinary:

As I was reading docs on Andrei's new memcache extension (memcached) I came across a binary serialization extension called Igbinary written by Sulake Dynamoid Oy. This extension promised much more optimal serialization routines by using binary, rather then a clear text format. Sounded, good so I decided to run a few benchmarks on it.

He uses several different sizes of files to run his tests and found that, while it is just a bit slower than the normal serialization, the compression rate that's about fifty times smaller than the usual. The extension also offers a "compact_strings" parameter that allows for even more compression of just string data.

As you can see the serialization speed is pretty amazing, once your serialized data set is in excess of 100bytes, you can expect nearly 2x improvement with a ~30% data set reduction with igbinary. I think we got a winner!
0 comments voice your opinion now!
serialize data igbinary extension


blog comments powered by Disqus

Similar Posts

NetTuts.com: Understanding and Working with Relationships Between Data in WordPress

Chris Jones' Blog: The PHP "./configure --with-oci8" Option in Detail

Greg Freeman: Processing data with PHP using STDIN and Piping

Andrei Zmievski's Blog: pecl/memcached turns 1

Tony Bibbs' Blog: PHP5 SOAP Still Has Ways to Go


Community Events





Don't see your event here?
Let us know!


list release unittest voicesoftheelephpant framework symfony community composer version series podcast language configure introduction interview opinion threedevsandamaybe laravel conference api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework