Re: Improve PHP 7 serialization
| From: | Park Framework | Date: | Tue, 23 Sep 2014 21:56:26 +0000 |
| Subject: | Re: Improve PHP 7 serialization | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-77557@lists.php.net to get a copy of this message | ||
> Why break anything? If you need faster serializer, it's quite easy to
> get one, including msgpack. If it is really an issue that is important
> for people, we could include the package into core. But I don't see
> breaking BC in serialize/unserialize as a big win here. If it's really a
> bottleneck, a userspace package abstracting the specific serializer
> function could be easily created - and most clients like sessions
> already allow to switch serializers by configs. So BC break does not
> seem to be warranted here.
Perhaps a compromise would be to choose the quickest method of
serialization, add it to PHP core.
In php.ini add the directive
serialization.method = msgpack / Igbinary / ....