Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125156 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 7784C1A00BD for ; Fri, 23 Aug 2024 18:11:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1724436775; bh=5/lWTXXp4Xq8Ca9My1biQXdfER1c1IwZHk6go6WSIhQ=; h=From:Subject:Date:In-Reply-To:Cc:To:References:From; b=DfSuPRdD1TTseJ5RoRlKOezIojpdJwxOsSAdZeWdEQKxNDAzBdCJMcQnZTx0MHMhK RpDgwvMX56AEHevfeSvRbPG2j8wndZotIY9Tjjp7+GGsvkXdLb8sRGUEifGaL+jpsB GxgYr+fFkbHBEW1ywrHRddn7MHnic6OmYiMGKQ7My0do3hoK5YmPpxBEauJkA4/6hY AGtVe9wHCWeqO8HMNtshW6z/FGG1timzENW1PjRB5GwUt827sUAfGgL///jtXnp0mA qjWfJNSWCUeY8IvSfkkK2j6f6yvgPvSf2jyIbZ6S4cKwsTL6X06P3tmYUaBFhy1vzC xUGWqDJ5aYV0w== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CAC42180080 for ; Fri, 23 Aug 2024 18:12:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DMARC_MISSING, HTML_MESSAGE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail1.25mail.st (mail1.25mail.st [206.123.115.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 23 Aug 2024 18:12:54 +0000 (UTC) Received: from smtpclient.apple (unknown [49.48.221.224]) by mail1.25mail.st (Postfix) with ESMTPSA id B1E3B60401; Fri, 23 Aug 2024 18:10:57 +0000 (UTC) Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_4334453C-A479-494C-A02A-908F44496F4D" Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: Re: [PHP-DEV] [Concept] Flip relative function lookup order (global, then local) Date: Sat, 24 Aug 2024 01:10:44 +0700 In-Reply-To: Cc: PHP internals To: Ilija Tovilo References: <21D6F160-5EAE-44FA-907B-E1DAAC1B8D75@rwec.co.uk> <53BD062A-4D7F-4E5D-852E-6D27641213A8@koalephant.com> <7607FD64-5572-466E-9866-63C2536B2A09@koalephant.com> <0d269a38-28fe-494c-a903-50022e09f27b@app.fastmail.com> <63DAE337-B117-4380-8735-186DC30FE0B7@rwec.co.uk> X-Mailer: Apple Mail (2.3776.700.51) From: php-lists@koalephant.com (Stephen Reay) --Apple-Mail=_4334453C-A479-494C-A02A-908F44496F4D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 24 Aug 2024, at 00:32, Ilija Tovilo wrote: >=20 > I obviously also disagree with 3. as I wouldn't have sent this > proposal otherwise. :) Performance improvements are hard to come by > nowadays. It was measured on real codebases (Symfony and Laravel). Hi Ilija, Just to make sure I'm not misunderstanding something here - Symphony and = Laravel (or anyone else) can get the exact same performance benefit = you're talking about, if they use either a leafing `\` or `use = function...` in their own code, today, correct? I'm not going to pretend to know how many files either project has that = uses global functions, but neither of those two existing options seems = particularly "hard to come by" in my mind. Cheers Stephen=20= --Apple-Mail=_4334453C-A479-494C-A02A-908F44496F4D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

On 24 Aug 2024, at 00:32, Ilija Tovilo = <tovilo.ilija@gmail.com> wrote:

I = obviously also disagree with 3. as I wouldn't have sent this
proposal otherwise. :) Performance = improvements are hard to come by
nowadays. It was measured on real codebases (Symfony and = Laravel).

Hi = Ilija,

Just to make sure I'm not = misunderstanding something here - Symphony and Laravel (or anyone else) = can get the exact same performance benefit you're talking about, if they = use either a leafing `\` or `use function...` in their own code, today, = correct?


I'm not going to = pretend to know how many files either project has that uses global = functions, but neither of those two existing options seems particularly = "hard to come by" in my = mind.


Cheers

<= div>Stephen = --Apple-Mail=_4334453C-A479-494C-A02A-908F44496F4D--