Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68478 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59575 invoked from network); 10 Aug 2013 10:02:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Aug 2013 10:02:34 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.44 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 74.125.82.44 mail-wg0-f44.google.com Received: from [74.125.82.44] ([74.125.82.44:40227] helo=mail-wg0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/4D-06453-9BF06025 for ; Sat, 10 Aug 2013 06:02:34 -0400 Received: by mail-wg0-f44.google.com with SMTP id l18so4168743wgh.23 for ; Sat, 10 Aug 2013 03:02:30 -0700 (PDT) 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=48+5dP5ZRyJyrYsq7kDYe/e19O+wx0OSjH6JLlmxnZY=; b=J6oLy0D509ENBP+ElRLYhJRd+RIEZ+7VlnQIbIBX9d5k4l9s9/2O2TvvDG9iEK2yEW 8eBVyEDjNCH6grGiW2y/RL1OyNpTKuo5xkRVUOPkjoNqKn+7uvVUC26O70C4tLZxuSl3 C1q7drEp7tNDcnIeA92DBkeR10KAdf/Co7DIyNaG9YNv68it7PDO6eGmzMK6GRuVzrrG uSqrgYoZ12wwcDpCZZodfF2as++/snHhMB21oEr6tDH8DN0uGQnDBnZ/0g2h6+wFJvCN PyGPitEcI6nU40MZA/RDB1GSK9G5nSNFEB+hQc5QynKxsVH9CHCKPM2sSVad7zp1/DYZ uV6Q== MIME-Version: 1.0 X-Received: by 10.180.36.195 with SMTP id s3mr2262235wij.56.1376128950311; Sat, 10 Aug 2013 03:02:30 -0700 (PDT) Received: by 10.216.182.193 with HTTP; Sat, 10 Aug 2013 03:02:30 -0700 (PDT) In-Reply-To: References: Date: Sat, 10 Aug 2013 11:02:30 +0100 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=e89a8f6473ff3fa42804e394fd79 Subject: Re: [PHP-DEV] Request #17860 Suggestion: auto detect whether session changed From: leight@gmail.com (Leigh) --e89a8f6473ff3fa42804e394fd79 Content-Type: text/plain; charset=ISO-8859-1 On 10 August 2013 10:54, Yasuo Ohgaki wrote: > Hi Leigh, > > On Sat, Aug 10, 2013 at 6:48 PM, Leigh wrote: > >> What is the performance difference if you just touch the files instead >> of writing them? (i.e. update mtime) > > > It will be faster for sure for files and database/network > based session storage, but I didn't took benchmark. > > I can make default handlers not to purge data, but > 3rd party save handlers will be affected. Since there > is no API for it. Should I create API? > > I think custom handlers should still function as they always did, you should not track whether the session changed or not for them, they can easily track that themselves. For the built-in file based handler, do you think it would be a valid compromise to update the mtime of session files instead of not writing to them at all? This way you do not break BC, and maybe get a performance increase too. (and can be on by default) Disabling writes altogether (even optionally) with documented hard to debug unexpected side effects isn't a good thing in my opinion. --e89a8f6473ff3fa42804e394fd79--