Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:105762 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93781 invoked from network); 20 May 2019 21:54:11 -0000 Received: from unknown (HELO mail-pg1-f180.google.com) (209.85.215.180) by pb1.pair.com with SMTP; 20 May 2019 21:54:11 -0000 Received: by mail-pg1-f180.google.com with SMTP id f25so660907pgv.10 for ; Mon, 20 May 2019 12:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GWnAX8ThP2ukebat9WuYxX5pvZdS+WB+GaMq5XDlLzQ=; b=qhYrlvr6j0OLsrFofNoUpApNFk5MNi2d48wUVriuxYqmTfSkEDtrFOOSNkfrpTW/mW J67L3vYQyiZS8kWiOboRjXAVcHRYt2WktY1E8uRKRNpss0oqLrsx1AKsm/IY/BgVmgnz 14uG3XeZcmbKXi252ab2JbmtsGgg/IjipdZuR/Dn+cODyGbv/ykwTcV1Kjl5BCv75Siq NN1YthhDovaCeGJ7UdP8v2JJeMNSTsH0mLsBr8G4yJJH/e6wBxfzaKmv6pLd5dLoWHxy +qmxq2+4iCZJ1LNGYUsq+sJZmZAyFb02xyOUUxmYWlix+VfKDbCqT6FFSvd/w3SDHKUQ SjJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GWnAX8ThP2ukebat9WuYxX5pvZdS+WB+GaMq5XDlLzQ=; b=JROlqmo2xMsOYzTRZwDimZ3fDgsf3I7R6KTrwDWj/pW/ODByciqI5tp65FkCvwb4zq XmwQX/DnQLYiDsXPUSrh9XwjoieS8h1b73qWMFn1NaYdIy2lesCaQ/or5dpFrSkU9aDb eEvF+TyjbP6yguUwIAnk86JVDcpEKku3iDgZ/6LlGWIYzGMWjAerX+IMJzMB8dd9yf89 e3zXji3asOmL1HEUgrO/d1cbkVfjqmeZvRzaGrAkljdwqBdN5g8oR/eM+T2YOSnm4b8k x1DDudGZjrvt2wYxUFYYYsLyUwF7NsdH6K0ODZJIwUPSRptwBRyw0oJ0F6t6CZEorMf2 vcaw== X-Gm-Message-State: APjAAAXp6ERftkzBoo19RyESM4jCZwCWSIMWCjwzbxQ+ItMLv6g5aCDW G3Kj/GoyksQ2KEShnIC18QMPi+cafNDF/z7L4W0= X-Google-Smtp-Source: APXvYqx+JDzwf1MTm9yhpKprMKqwbRxRqJhynSp5hUriBDijc23L6R57rnryzbirnflLJ1lJMZXd5GsalfPIhXs7s6A= X-Received: by 2002:a62:ea04:: with SMTP id t4mr80545496pfh.47.1558378883643; Mon, 20 May 2019 12:01:23 -0700 (PDT) MIME-Version: 1.0 References: <16ad66607a0.27c1.08be835b7d1a2c2edb4c4286afe1a236@gmail.com> In-Reply-To: Date: Mon, 20 May 2019 12:01:14 -0700 Message-ID: To: Marco Pivetta Cc: Gabriel Ostrolucky , Theodore Brown , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000c8fef00589565b78" Subject: Re: [PHP-DEV] High performance function autoloading From: mo.mu.wss@gmail.com ("M. W. Moe") --000000000000c8fef00589565b78 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, "Disabling function mocking is good", in my life I read many idioties; this one gets the "Palme d'Or"; This majesty; crowned Emperor. On Mon, May 20, 2019 at 11:45 AM Marco Pivetta wrote: > On Mon, 20 May 2019, 20:01 Gabriel O, wrote: > > > > > On 20 May 2019 7:17:58 PM Theodore Brown wrote= : > > > > > Every time function autoloading been brought up in the past, there > > > have been concerns about performance issues when calling a global > > > function from inside a namespace. E.g. calling `strlen` in a loop > > > would become far slower if every call has to trigger the autoloader. > > > > This trick for perf improvement is overblown. It's misconception that i= t > > does provide speed advantage for most functions and reasons behind it. = It > > does so only for those implemented as opcodes. People started to abuse = it > > by importing ALL functions. Such overzealous approach completely preven= ts > > useful things like function mocking. > > > > Disabling function mocking is good =C2=A9=EF=B8=8F > > It was a terrible practice in first place, and it is usually done for > impure functions that should be wrapped in integration-tested adapters. > --000000000000c8fef00589565b78--