Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68764 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16448 invoked from network); 30 Aug 2013 22:32:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2013 22:32:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=krebs.seb@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=krebs.seb@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.47 as permitted sender) X-PHP-List-Original-Sender: krebs.seb@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wg0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:48050] helo=mail-wg0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/13-00443-A6D11225 for ; Fri, 30 Aug 2013 18:32:11 -0400 Received: by mail-wg0-f47.google.com with SMTP id f11so2035067wgh.26 for ; Fri, 30 Aug 2013 15:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ZZksugMzzAQWlGImB58XeXGxsR9/PxvdS0sBWYob90s=; b=ZCU/wcBByvpONTk+oZCKPw6ygi8SDqq5jkzETL6zwIgBjgNYwAYsoQZrR8TJsrHV6s sFFA/zw88f5ZDMGR4RoBJdSSvP94ANuTfFsf4/QqTuIHt3iAhIrI5OtrZzWx14gVrqhZ zX1/kcXjSLHr5knrVmICpVHidisjxFtDlhwssQXXN+vMPGFKHV/FDwtHDlZUWaQrBxkr xWS1LeMUz8WkWpAbEc7CLLK667P6PZxbR0zOvUVvmtfx++Wo4XNVQnk0Ak4TC/GeJaOS /cQytJTmiHUwLHA3xnseO0OVn6be36lr4jvolyuwAjwhlU6W83D8dWdmEKQGrTtlQsVx lwCQ== X-Received: by 10.180.107.225 with SMTP id hf1mr4190583wib.7.1377901927756; Fri, 30 Aug 2013 15:32:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.5.9 with HTTP; Fri, 30 Aug 2013 15:31:27 -0700 (PDT) In-Reply-To: <52211AFB.1090005@sugarcrm.com> References: <20130830181124.GA27417@fb.com> <52211AFB.1090005@sugarcrm.com> Date: Sat, 31 Aug 2013 00:31:27 +0200 Message-ID: To: Stas Malyshev Cc: Jordan DeLong , Leigh , Anthony Ferrara , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=e89a8f3baedff07a2104e531cab2 Subject: Re: [PHP-DEV] Re: [DRAFT] [RFC] Function autoloading From: krebs.seb@gmail.com (Sebastian Krebs) --e89a8f3baedff07a2104e531cab2 Content-Type: text/plain; charset=ISO-8859-1 2013/8/31 Stas Malyshev > Hi! > > > We got a performance win from exactly this at Facebook. We have some > > extensions in HHVM to autoload that allowed us to remove almost all > > our *_once calls. > > But autoloading does not remove require - you still have to load the > files. But it removes many many 'require_once's. > Only thing that can be removed is a non-loading require. Is it > that frequent that it had significant performance impact (given that > with opcode caching non-loading require is pretty much a couple of hash > lookups)? > Those, who doesn't wrap anything in classes, can see this very frequently. > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- github.com/KingCrunch --e89a8f3baedff07a2104e531cab2--