Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68735 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56198 invoked from network); 30 Aug 2013 17:04:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2013 17:04:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:56975] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/D4-32511-7B0D0225 for ; Fri, 30 Aug 2013 13:04:55 -0400 Received: by mail-lb0-f170.google.com with SMTP id w7so1967414lbi.29 for ; Fri, 30 Aug 2013 10:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=lYahsXYKYr2goXkI2AWpK1uaDBg2EvDRPIMWa7kPIv4=; b=JPaeQ/lWEEowCT5OupIBfMXQE9yFnihCGDBpZwZCp2xcfGO46B3tSQ/8nJUR0ykPKZ wP+xDlCM/uiOhIyHAWN9L1qGlGQc2babNy+72i0E4cjEe1jTpV3TBJvHA43JsLCQtZHj GkcE+zOCFnAq6jMx15txVOjj95rIEr5Jf5eNslqqE2yS4zUSk2TvzOiu+9ugKTib7H5P +zjeYc8lDhRvx422ZrF2As3o7DJd49cMqyIvWqejL0tLgV2INSvdayi4lC7YUiH1C7mF zWmgfs4Xyv7gj2tj9Wsm87hvtDbmlb4ATxnuHtc8FoPnHIuUbBzdnWeFveaUFTQIhPDi nu2Q== X-Received: by 10.152.203.233 with SMTP id kt9mr8691309lac.29.1377882292498; Fri, 30 Aug 2013 10:04:52 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.114.224.228 with HTTP; Fri, 30 Aug 2013 10:04:32 -0700 (PDT) In-Reply-To: References: Date: Sat, 31 Aug 2013 01:04:32 +0800 X-Google-Sender-Auth: rTAEoGeeZYvwTW8qd_LnUfCYQLY Message-ID: To: Leigh Cc: Anthony Ferrara , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Re: [DRAFT] [RFC] Function autoloading From: laruence@php.net (Laruence) On Sat, Aug 31, 2013 at 12:13 AM, Leigh wrote: > 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. I just reply to this point: No. thinking we already have opcache there. so, *compiling* Functions is cheap. but if with function autoloading, *function autoloading* will execute every run. thanks -- Laruence Xinchen Hui http://www.laruence.com/