Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68729 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46396 invoked from network); 30 Aug 2013 16:13:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2013 16:13:08 -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.52 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 74.125.82.52 mail-wg0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:33943] helo=mail-wg0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id ED/A2-32511-394C0225 for ; Fri, 30 Aug 2013 12:13:08 -0400 Received: by mail-wg0-f52.google.com with SMTP id l18so1759765wgh.31 for ; Fri, 30 Aug 2013 09:13:05 -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=OLeotKDZl3TWXkrxkL3RVrOblT2eA7uczJziWLV0kAQ=; b=eWCmR8HavZ6HZTcyxFINxC7nBsKAIH2JewEqbyejLw/htF2A7oIvEigPIq6j94HrWC VBa2uczvZb0g+xCHk6VeO+JtuPwX7L7aHfWILqoTbLZEu4omM7K4r/4m4RfYqFFdBRlb 3N30q3QaWngDlDCRvPDvdVLDjlcAw0rsvVvcZb+zmFeZahOYceWfxMYQCSJTsVZy+BpB Kr1Tro+9v9PUsJ6JXFB0aSh20E6eqSYyEnjr7dqPa4IKOS932feq9KyAHcJpYVGp77Cf UVO7fKR3zv6kw3mTViTjpLJLL1AX976qums3LdMXiaXMEQ+umfn2UhO+Qrd4p4Ag7UE8 hEOg== MIME-Version: 1.0 X-Received: by 10.180.183.137 with SMTP id em9mr2653351wic.56.1377879185098; Fri, 30 Aug 2013 09:13:05 -0700 (PDT) Received: by 10.216.182.193 with HTTP; Fri, 30 Aug 2013 09:13:05 -0700 (PDT) Received: by 10.216.182.193 with HTTP; Fri, 30 Aug 2013 09:13:05 -0700 (PDT) In-Reply-To: References: Date: Fri, 30 Aug 2013 17:13:05 +0100 Message-ID: To: Anthony Ferrara Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a11c349065f0f8004e52c7f5c Subject: Re: [PHP-DEV] Re: [DRAFT] [RFC] Function autoloading From: leight@gmail.com (Leigh) --001a11c349065f0f8004e52c7f5c Content-Type: text/plain; charset=ISO-8859-1 On Aug 30, 2013 1:31 PM, "Anthony Ferrara" wrote: > For constants and function calls, the benchmark shows that the difference > is well within the margin of error for the test (considering variances of > 5% to 10% were common in my running of the tests). > > So hopefully this will dispel any worry about performance regressions in > currently defined cases. > > The times where performance will take a hit, is with undefined functions > and constants. Today, an undefined function will fatal error, so this > performance hit would be 0, as it would enable something that's not > possible today. I would assume there is actually potential for performance gain for functions being autoloaded in larger codebases when the *_once calls are removed that would normally load the common functions files. --001a11c349065f0f8004e52c7f5c--