Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80434 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69555 invoked from network); 13 Jan 2015 02:51:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2015 02:51:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.53 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.53 mail-la0-f53.google.com Received: from [209.85.215.53] ([209.85.215.53:35241] helo=mail-la0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/33-51796-33884B45 for ; Mon, 12 Jan 2015 21:51:32 -0500 Received: by mail-la0-f53.google.com with SMTP id gm9so405466lab.12 for ; Mon, 12 Jan 2015 18:51:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FUR8q+JUX7l0tsql7Lqx67NEpESLr7tQ8QZdtNinsj8=; b=Etnz6BlU0Gp7MnxxHtruUo2DvvdFpOyyR2W1bO+7g1r1aB0CXo/TsRig3xy1+KO6jy TZEPakucqE7sYE7GCfmn2EFe4+d166RGAbnrpJF+oXqTN2LmiSfN7IvI0E3c7wwZlkjY EeRjl58/FuqtQihG0BmlrCLtUPTuB/47Ago8USHr5va9muPawp0XKz8cEZf/MO6rpC9H uFx5df3wwl6shHMfV7PAGnUCa4jzszeSXJoqukgqmnG0xF+Q10JX0Oq7xwTYC1JpxUIB MEVWREWHHkEG3PKrS4/mKUGrNdxCBPB4HdcaWZhH0JOks+k6J76vI7sC7Tqec3dpdTXk Hg0Q== MIME-Version: 1.0 X-Received: by 10.112.150.194 with SMTP id uk2mr40071688lbb.84.1421117487966; Mon, 12 Jan 2015 18:51:27 -0800 (PST) Received: by 10.112.154.133 with HTTP; Mon, 12 Jan 2015 18:51:27 -0800 (PST) In-Reply-To: References: Date: Mon, 12 Jan 2015 18:51:27 -0800 Message-ID: To: Xinchen Hui Cc: Jakub Zelenka , PHP internals list Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] jsond From: pierre.php@gmail.com (Pierre Joye) On Mon, Jan 12, 2015 at 6:34 PM, Xinchen Hui wrote: > Hey: > > On Tue, Jan 13, 2015 at 2:06 AM, Jakub Zelenka wrote: >> On Mon, Jan 12, 2015 at 1:40 PM, Xinchen Hui wrote: >>> >>> Unfortunately, I don't see performance improvement in wordpress. even >>> slowdown a bit. >>> >>> for IRs , it increased IR by 0.05% while run wordpress homepage for 100 >>> times :< >>> >>> do you think there is some room to be improvement? >>> >>> thanks >> >> >> To be honest I expected that there won't be a big difference unless >> json_decode is heavily used for bigger json instances. >> >> Anyway the decoder is not fully optimized yet and there definitely is a room >> for improvents. It's basically just an initial port for PHP 7. But I think >> that it's already good enough to replace the existing json ext as my >> benchmarks for instances containing large strings already gives much better >> results. >> >> And, of course, it is a PHP licensed parser... :) >> > sure, of course, :) btw, it is important that this point alone justifies this RFC (and us accepting it as there is no impact on perf and could be better). We have an issue with the current extension due to the license of the underlying implementation. Many distros already use alternative implementations. To solve this problem will make everyone work easier. -- Pierre @pierrejoye | http://www.libgd.org