Re: [PHP4BETA] Serialization efficiency
| From: | Stig Bakken | Date: | Sat, 12 Jun 1999 11:37:45 +0000 |
| Subject: | Re: [PHP4BETA] Serialization efficiency | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1521@lists.php.net to get a copy of this message | ||
As long as the data can be written and read on different-endian machines,
I don't mind. But what about optimizing the serialisation code instead
(perhaps by using a binary but network-byte-order format)?
- Stig
On Sat, 12 Jun 1999, Zeev Suraski wrote:
>
> I know that the session module uses serialization code that's platform
> independent, because it generates human readable output. Question is, why
> would we want that?
>
> Storing server-side information should be as quick as possible, and you
> rarely care about platform independence. I think that storing binary
> representations of pval's would be much quicker to both read and write in
> comparison to the text based serialization we're using now.
>
> Using binary serialization may be less suitable for database-based
> storage, but actually, you can use BLOBs or even VARCHAR's on any decent
> SQL server.
>
> Zeev
>
> --
> -----------------------------------------------------
> Zeev Suraski <zeev@zend.com>
> For a PGP public key, finger bourbon@netvision.net.il
>
>
>
> --
> PHP 4 Beta
>