Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44857 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52629 invoked from network); 9 Jul 2009 09:11:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jul 2009 09:11:03 -0000 Authentication-Results: pb1.pair.com header.from=mls@pooteeweet.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=mls@pooteeweet.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pooteeweet.org from 88.198.8.16 cause and error) X-PHP-List-Original-Sender: mls@pooteeweet.org X-Host-Fingerprint: 88.198.8.16 bigtime.backendmedia.com Linux 2.6 Received: from [88.198.8.16] ([88.198.8.16:54270] helo=bigtime.backendmedia.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/6B-27938-624B55A4 for ; Thu, 09 Jul 2009 05:11:02 -0400 Received: from localhost (unknown [127.0.0.1]) by bigtime.backendmedia.com (Postfix) with ESMTP id 3D1A44144061; Thu, 9 Jul 2009 09:12:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at backendmedia.com Received: from bigtime.backendmedia.com ([127.0.0.1]) by localhost (bigtime.backendmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jm1BaTrQF3My; Thu, 9 Jul 2009 11:12:18 +0200 (CEST) Received: from [192.168.20.2] (gprs37.swisscom-mobile.ch [193.247.250.37]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mls@pooteeweet.org) by bigtime.backendmedia.com (Postfix) with ESMTP id A4C13414405E; Thu, 9 Jul 2009 11:12:17 +0200 (CEST) Cc: Mark , PHP internals Message-ID: <5DEEEEA5-057F-4E87-8CCD-44C8FD297FF2@pooteeweet.org> To: troels knak-nielsen In-Reply-To: <98b8086f0907081728s1280c07bm7ae25e6e49cb824a@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Thu, 9 Jul 2009 11:10:53 +0200 References: <2D0F5226-EBCA-4B45-BF01-8ED1C643976C@prohost.org> <641f88250907081313s3469960aked8a25ff316a4bcd@mail.gmail.com> <6e24a8e80907081715j7d878ef4h8cd1dd86097f6f1c@mail.gmail.com> <98b8086f0907081728s1280c07bm7ae25e6e49cb824a@mail.gmail.com> X-Mailer: Apple Mail (2.935.3) Subject: Re: [PHP-DEV] Type hinting/casting request for vote From: mls@pooteeweet.org (Lukas Kahwe Smith) On 09.07.2009, at 02:28, troels knak-nielsen wrote: > On Thu, Jul 9, 2009 at 2:15 AM, Mark wrote: >> I personally would be highly in favor of adding type hinting/casting >> BUT with the benifit that php actually becomes faster if you do >> things >> like that. Afterall you can use way more effective c code if you know >> what you expect right? As for the version to include type > > I sure hope that all the people in favour of this change aren't basing > their opinion on some delusion that it would improve performance in > any way. well .. this will have an effect on performance. for one the additional checks will probably add a small overhead for all users. the reduction in user land type check code should of course improve performance. that being said, none of the above will have a significant relevant affect on performance in real world applications (which usually spend most of their time talking to data stores and not type checking). regards, Lukas Kahwe Smith mls@pooteeweet.org