Re: [Concept] Flip relative function lookup order (global, then local)
From: Claude Pache Date: Fri, 02 Aug 2024 19:01:47 +0000 Subject: Re: [Concept] Flip relative function lookup order (global, then local) References: 1 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
Hi, I propose the following alternative approach: * establish a restricted whitelist of global functions for which the performance gain would be noteworthy if there wasn’t any need to look at local scope first; * for those functions, disallow to define a function of same name in any namespace, e.g.: https://3v4l.org/RKnZt That way, those functions could be optimised, but the current semantics of namespace lookup would remain unchanged. —Claude
Thread (112 messages)
- Re: [Concept] Flip relative fu nction lookup order (global, then local)
- Re: [Concept] Flip relative function lookup order (global, then local)
- Re: [Concept] Flip relative function lookup order (global, then local)
- Re: [Concept] Flip relative fu nction lookup order (global, then local)
« previous | php.internals (#124725) | next » |
---|