Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66512 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54701 invoked from network); 6 Mar 2013 22:30:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2013 22:30:53 -0000 Authentication-Results: pb1.pair.com header.from=wfitch@meetme.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=wfitch@meetme.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain meetme.com designates 74.125.149.143 as permitted sender) X-PHP-List-Original-Sender: wfitch@meetme.com X-Host-Fingerprint: 74.125.149.143 na3sys009aog130.obsmtp.com Linux 2.5 (sometimes 2.4) (4) Received: from [74.125.149.143] ([74.125.149.143:46385] helo=na3sys009aog130.obsmtp.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/23-39658-B93C7315 for ; Wed, 06 Mar 2013 17:30:52 -0500 Received: from mail-vc0-f199.google.com ([209.85.220.199]) (using TLSv1) by na3sys009aob130.postini.com ([74.125.148.12]) with SMTP ID DSNKUTfDk521TxnHYxCh+htvIOI8WBvFzut7@postini.com; Wed, 06 Mar 2013 14:30:52 PST Received: by mail-vc0-f199.google.com with SMTP id fo13so12127064vcb.10 for ; Wed, 06 Mar 2013 14:30:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-received:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=LTGK9zZ8MbOfj0/CbTM1MYmKzsmFww7PgVoPtvvz4wE=; b=O2pYkS6OZYq1Bsr+uG3debwhd1dUEJ0bgdSaheyU1gnAqJZPAIVhcOZ1XaagwT5KHA Dpm30hEW5Ica960OFAxesCzPzbIBhJ+zrPQZckA1NWjEjzXdWwe9zg7KrKb73NaXV9Ki ANwL+HnHwG6WMUkatPurkpa9Bk5vu6oSKTM4VvLcZa1hNZGOIc+S9I9e6wdRWXSmtiAd l/lcFAyP5DwjucFP4rPguuiR2vfGVKV4i2wHWy2Yqf9NG5NusiuDI5piO7ZFNEKCAb7F gitmFHaSGE/+DKbku4/WoP+q84v6Hyqo4XqA1+mHvzbHjVuILdC1v6NOL0ugOVSNij5T KGLw== X-Received: by 10.49.12.194 with SMTP id a2mr7952705qec.11.1362609042884; Wed, 06 Mar 2013 14:30:42 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.49.12.194 with SMTP id a2mr7952693qec.11.1362609042724; Wed, 06 Mar 2013 14:30:42 -0800 (PST) Received: by 10.49.104.51 with HTTP; Wed, 6 Mar 2013 14:30:42 -0800 (PST) In-Reply-To: References: Date: Wed, 6 Mar 2013 17:30:42 -0500 Message-ID: To: Bob Weinand Cc: PHP Developers Mailing List Content-Type: multipart/alternative; boundary=047d7b6787d2f5b74704d74923c8 X-Gm-Message-State: ALoCoQkyy1vwdl+l0PcRXHQGXKFjoMqF3DzGEoaLXMTO0LGE/u6CN+F/PP0F2RPdBIBW3dADxe0Pxn4yVB0QXX03vmfRrPYBjbdGsN24WEJhRlNyAjy9sxOOaSoGqh8xLsPyOlV9s5wFYA9wudQFsRAf9adaLIoCSZBWLfnFjEcaBIA8VEJz8JU= Subject: Re: [PHP-DEV] [RFC] unset(): return bool if the variable has existed From: wfitch@meetme.com (Will Fitch) --047d7b6787d2f5b74704d74923c8 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Mar 6, 2013 at 5:25 PM, Bob Weinand wrote: > Am 6.3.2013 um 22:50 schrieb Will Fitch : > > On Wed, Mar 6, 2013 at 4:44 PM, Bob Weinand wrote: > >> Am 06.03.2013 um 22:39 schrieb "Will Fitch" : >> >> On Wed, Mar 6, 2013 at 4:10 PM, Bob Weinand wrote: >> >>> Hi! >>> >>> As this seem to require a RFC, here is it: >>> >>> https://wiki.php.net/rfc/unset_bool >> >> >> I'm not a fan of this change, but if it's going to be discussed, the RFC >> should include baseline and RFC change benchmarks. >> >> >>> >>> >>> Please feedback, >>> >>> Bob Weinand >>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >> >> I don't see here a real need for a benchmark as it is mostly only >> returning SUCCESS or FAILURE instead of nothing. Nothing what would slow >> PHP down. >> > > Any change to a language construct which requires additional processing > adds time. It may be in minute, but it's part of the discussion. Since > this core change you're requesting comments for introduces a usecase which > many will not find useful (probably most voting), it is your responsibility > to convince this category of people that the tradeoff won't affect them > that much. > > If you choose not to add benchmarking, I will guarantee a -1 from me. > > >> >> Bob Weinand >> > > I have tried the following: > > time ./sapi/cli/php -r 'while($i++ < 1e7) { $a = true; unset($a); }' > > Unpatched: average of 5x executed: > real 0m4.935s > user 0m4.925s > sys 0m0.008s > > Patched: average of 5x executed: > real 0m4.945s > user 0m4.938s > sys 0m0.005s > > > Yes, there is an increase of 0.15%. This is 1 nanosecond more than > previous. > > Is this exact enough? Or do you need more precision? > > If yes, I'll put this into the RFC. > Thank you. Please do add to the RFC > > > Bob Weinand > > --047d7b6787d2f5b74704d74923c8--