Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105769 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 4010 invoked from network); 21 May 2019 11:09:08 -0000 Received: from unknown (HELO mail-wr1-f44.google.com) (209.85.221.44) by pb1.pair.com with SMTP; 21 May 2019 11:09:08 -0000 Received: by mail-wr1-f44.google.com with SMTP id g12so17171903wro.8 for ; Tue, 21 May 2019 01:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=0QJdyMYafjy328Wzmt5/GI0jLmE7vhj9vVm2HKYFMtQ=; b=KQcgkBj2CK3ykXfQ44AAiCbvRc9ZynVEJYUK7jpGDLSeqzauU+6DhY5cmkP/rsvRYC mHNOFV1cZI3f8YmhTUuJ2pNGJX3JtFIouUks5S39kKjJEv/fjcxbjTkqooXET5DT4FBG cW3j3fMVOznzEAj6bJ/LIqtksoHtmEWpwx/ijE+Gp1pi47B8TAJ9fXWLmeuhTSkdm++B 00kVs3vS9kPu+8MSSDW2sO4VkKjRGHBqRS5/zgSHKTxFDQdbWohPNd7hVt5n5tumhkqN bdAp2VhFaCMxlY2bolhNaMkoirrU8I2RYIyacBJEUFbrFD//ZddTsHscG8oZtiBb/zkh c+Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=0QJdyMYafjy328Wzmt5/GI0jLmE7vhj9vVm2HKYFMtQ=; b=bvyK68ARsUKyhLJW5iJzWBDpHVt7ey092CkusUnRz1WLzLK02RPgLniaoccRO3zybY /PF3V3VT6hgalsXOuA4OxSlaRAL78m6AWGi3Eh7fBywlWyCtbcUuIaBQ2wAc7PJ7AEHj 66CRbih7NBMlpM8hDx0/GqS2uu+jVcZqLNcz5mOhI2ZyPH40kETflxIkvXNCi80KU0vv OL5hjrzL6/xDRyLA4xzeraGbor+Ime8m47tE7SJaJlvYgrku8URx4VbVRlEuJ6Dte7gl dbYEOdDF7MQiuGPLOrrGfQTwZaK2n5L2VzwCgKieLYHJ7edmbencEvAsqM5HTdXwSig5 qSUA== X-Gm-Message-State: APjAAAUupf3exX3tumlA5e8kG22CbZPNMXyz3pGEmzWKqkbWz16+OfRH ijq543O9Nna/AEmbL5nB2bQ= X-Google-Smtp-Source: APXvYqxF2ASu/0fMRFNcgX64TyG0vlu6PgODtBm+gNoyeUOkUfbvf4Hcvw/iXWRL0ljeuJ9MDrWEgw== X-Received: by 2002:adf:dcc8:: with SMTP id x8mr1994346wrm.3.1558426588564; Tue, 21 May 2019 01:16:28 -0700 (PDT) Received: from [10.10.0.34] (host-88-217-184-2.customer.m-online.net. [88.217.184.2]) by smtp.gmail.com with ESMTPSA id t13sm44469713wra.81.2019.05.21.01.16.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 May 2019 01:16:28 -0700 (PDT) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_B3AD87F9-7AA4-4969-A8A3-39ECF9DD7282" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Date: Tue, 21 May 2019 10:16:26 +0200 In-Reply-To: Cc: Marco Pivetta , PHP internals To: Theodore Brown References: <16ad66607a0.27c1.08be835b7d1a2c2edb4c4286afe1a236@gmail.com> X-Mailer: Apple Mail (2.3445.104.8) Subject: Re: [PHP-DEV] High performance function autoloading From: gadelat@gmail.com (Gabriel O) --Apple-Mail=_B3AD87F9-7AA4-4969-A8A3-39ECF9DD7282 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 20. May 2019, at 22:30, Theodore Brown = wrote: >=20 > On Mon, May 20, 2019 at 2:36 PM Gabriel O wrote: >>=20 >> Yes, this is misconception. Namespace resolutions are cached. First >> fixer tool bringing support for this was correct: PHP-CS-Fixer auto >> imports only optimized functions for this very same reason. >=20 > I'm confused, since this doesn't match what I've read elsewhere. For > example, Nikita wrote the following last time function autoloading was > discussed: [1] >=20 >> Calling the autoloader if a global function with the name exists will >> totally kill performance. This means that every call to strpos() or >> any of the other functions in the PHP standard library will have to >> go through the autoloader first, unless people use fully qualified >> names (which, currently, they don't). This is completely out of the >> question. Check = https://www.reddit.com/r/PHP/comments/b107c5/optimizing_your_php_app_speed= /eim2lti = which is also comment from nikic. I guess there is some confusion core maintainers should clear up. = Anyway, my point was if it improves perf of only some functions, this = config should be named differently and not have impact on non-optimized = ones. --Apple-Mail=_B3AD87F9-7AA4-4969-A8A3-39ECF9DD7282--