Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82000 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38805 invoked from network); 6 Feb 2015 03:03:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2015 03:03:16 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.174 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.192.174 mail-pd0-f174.google.com Received: from [209.85.192.174] ([209.85.192.174:37648] helo=mail-pd0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/5B-17766-2FE24D45 for ; Thu, 05 Feb 2015 22:03:15 -0500 Received: by pdbfp1 with SMTP id fp1so11760158pdb.4 for ; Thu, 05 Feb 2015 19:03:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:content-transfer-encoding:from:mime-version:subject :date:message-id:references:cc:in-reply-to:to; bh=LMweysq9AfCVsjSTE2Y7vfszsMVbzXpHRuxrzLgeBa4=; b=vqPxlyTdA+p2SdaIJE2w6JqREC8CahXUhSVprr3GW59L1tKln/UltKLWhXQJ3Z6zrQ ptfRUl2nbdJmdO+L0MCoNmU/RUpIsuQXPDJJsoenHDFyTOalrLSkC6qSNVbTg1jR1mIF Tgb1uwdcLb8XRUOFFu2VndW4GSgB7vqLY0pj5JxIKPshxey/tBms509z2ubHKjEUiS1g 5kX4iogm1SFMtgR+mWjkUauiHA7gG2Ox1z+MbFUtnwt7dxWxKyXlUT4F15YM0+64Wcuc tzrShZS5emgtHVU7MYdgmVE5Hku4fwXoKDMXIYYmScD2t3UqvIKSZjETFmn6ewUx+oFf VvQA== X-Received: by 10.70.124.163 with SMTP id mj3mr2164454pdb.110.1423191791836; Thu, 05 Feb 2015 19:03:11 -0800 (PST) Received: from [10.10.0.5] ([108.61.201.217]) by mx.google.com with ESMTPSA id yd9sm6431614pab.30.2015.02.05.19.03.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Feb 2015 19:03:10 -0800 (PST) Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Fri, 6 Feb 2015 11:00:58 +0800 Message-ID: References: <54D3EE95.2080109@lerdorf.com> Cc: Rasmus Lerdorf , PHP internals In-Reply-To: To: Yasuo Ohgaki X-Mailer: iPhone Mail (12B466) Subject: Re: [PHP-DEV] Annotated PHP 5->7 extension diff From: laruence@gmail.com (Xinchen Hui) Sent from my iPhone > On Feb 6, 2015, at 9:38 AM, Yasuo Ohgaki wrote: >=20 > Hi Rasmus, >=20 >> On Fri, Feb 6, 2015 at 7:28 AM, Rasmus Lerdorf wrote= : >>=20 >> Having just finished porting php-memcached (with help from Xinchen) to >> PHP7 I was wondering if it wouldn't be worthwhile to annotate the diff >> and explain why each change was made. The extension is complicated >> enough to cover most of the changes the bulk of extension authors need >> to worry about. >>=20 >> The diff is easy enough to grab: >>=20 >> git clone https://github.com/php-memcached-dev/php-memcached.git >> cd php-memcached >> git checkout php7 >> git diff master php7 >>=20 >> It looks like this: >>=20 >> https://gist.github.com/anonymous/15cbc9947edb4f0a71fd >=20 > It uses session save handler uses PS_MOD() which is legacy. > I may help to adopt PS_MOD_TIMESTAMP(). > It eliminates writes and boost session performance a lot if apps > do not update session data always. >=20 nice=A3=ACthanks btw did you bench your optimization on file handler against Wordpress? Thanks > Regards, >=20 > -- > Yasuo Ohgaki > yohgaki@ohgaki.net