Hi,

We have 2 alternative extensions
>
> - - jsonc the older one, probably not perfect, but used in a lot of
> downstream distributions
>
> - - jsond the recent one
>
>
> I think it is time to switch ext/json to another implementation and so
> make PHP really "free" again.
>

I think that we should have a proper benchmarks of both alternatives before
we make that decision. I have been already working on it for some time. I'm
almost done with a generator that generates json files based on defined
templates. I need to add more templates and experiment with it a bit more.
The decoders/encoders behaves differently for different json instances.
It's very important to test as many instances as possible to minimize
chance of any regression. I think that I'll be able to provide some numbers
in the next few months. I would like to benchmark current json, jsond as
well as jsonc.

Just a quick update on jsond. The decoder is mostly done. I have been
recently working on optimization for the encoder. I already have over 30%
speed improvement in encoding for string based arrays/objects like
$_SERVER. It's generally much faster now but there is still a big room for
other impromevents. I also experiment with a new buffer (replacement for
smart_str in json encoder). It needs lots of optimization but it already
gives better numbers for some cases. However it also gives worse numbers
for some other cases like processing small integers so I need to play with
it a bit more. As I said before I need a better set of benchmarks to be
sure that it works fine for a big number of json instances.

Cheers

Jakub

Reply via email to