Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109630 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 12055 invoked from network); 14 Apr 2020 15:33:20 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Apr 2020 15:33:20 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1008118050B for ; Tue, 14 Apr 2020 07:03:02 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 14 Apr 2020 07:03:00 -0700 (PDT) Received: by mail-qt1-f170.google.com with SMTP id o10so10120356qtr.6 for ; Tue, 14 Apr 2020 07:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=qTCeZJmCAuy/w9W/YJ5DfYXxIBjiInTAsd/WA17pAJ4=; b=Xzc/7cGTVy6M7QJiBLmkZa9ta/pY9l1zAY5NxgVbEkdFSmKU23se7kTP/MHMDdQZT4 w1lSd6vuecTtRgxYedTlJnhjU4hahdl3ffNYALlX8ig1KYLpP3Ai6vj6Ab0wKQmwn/JH UOcqMfXyPCp3ILywoLsEgW+eHb4azvldhj3mAHkfKmg3qtYiML+rOUMKX2R8YTJ1gI1I qdSUIweICmEJQUYCpTdIfzIWg3PNN4dnM2D6UOUkv988W8llmXJEmlgcCq+K67eRTyoc StwKRO4n03X8A+PppkTZiiTgOfxxPuzNy1dEdpVny6xT235TXk5eD35jmlNg2pmG2upA +gXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=qTCeZJmCAuy/w9W/YJ5DfYXxIBjiInTAsd/WA17pAJ4=; b=K26jmpyndHUGLmaxfjNFut3GTZqKdN+2Gt/4fN9VOEkUQ2Y0Nr3X6hif4q0VYzjRkP 5SHuRa4h30r2UrSTjouwxclg7+i0xkjfLagM/kpAbyd0YAG4e8/TMp+pq8iYYfhtpr7y Jqh9qK8Lm/3k3oQ7ieH+A02PcEa1rBCx9+fA+lrsN2H1z1wF0zHcIiBdi6DTbQSzYhfL vbIvdRhAKDCiiVHWI4ZuRqJLH8WyfqJAM4oIPCOfPMzVNBiwW0yJfgUgkBMdFWeRdANj uQAIGLhag5aFrj1JEwDMnGQfGn2zZLT7YaPnR7FfNE3c1eHyaiAABmEJIWpUb9yZGuBq 3mKA== X-Gm-Message-State: AGi0PubQ9XS2/no/qUhx35WCGLH/zPOljODJevHTsc0itXiDJqFzEezz +9riSOSgLVlYv0BFzEMxMzgug6QfSCkCmA== X-Google-Smtp-Source: APiQypLnd8s8QQi0zwyGtSp1VcU+cgATYQo4lVm3SKLmbokEch2yfZueqNMHlLKQOfKe9/f5bCWd8Q== X-Received: by 2002:ac8:2fda:: with SMTP id m26mr10548659qta.80.1586872977388; Tue, 14 Apr 2020 07:02:57 -0700 (PDT) Received: from [10.10.42.56] (h96-61-170-50.lvrgtn.dsl.dynamic.tds.net. [96.61.170.50]) by smtp.gmail.com with ESMTPSA id x24sm11213520qth.80.2020.04.14.07.02.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Apr 2020 07:02:56 -0700 (PDT) Content-Type: multipart/signed; boundary="Apple-Mail=_E5FC5416-2C14-4FAD-8E18-BA5CA0272862"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Date: Tue, 14 Apr 2020 09:02:55 -0500 References: <0ddd2987-644b-6fec-2670-2b6f366290e2@php.net> To: PHP internals In-Reply-To: <0ddd2987-644b-6fec-2670-2b6f366290e2@php.net> Message-ID: <55096EBD-4A01-43A6-A41A-843C8C5657A1@benramsey.com> X-Mailer: Apple Mail (2.3608.60.0.2.5) Subject: Re: [PHP-DEV] opcache.jit directive should be split up From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_E5FC5416-2C14-4FAD-8E18-BA5CA0272862 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Apr 14, 2020, at 08:53, Sebastian Bergmann = wrote: >=20 > PHP 8's JIT is currently mainly controlled through the opcache.jit = configuration directive [1]. >=20 > The value for opcache.jit is currently a sequence of four digits, = "5021" for instance. This would activate JIT optimizations based on = static type inference and inner procedure analyses (Optimization Level), = JIT optimization of all functions on load of the respective sourcecode = file (Trigger), global linear-scan register allocator (Register = Allocation), and AVX instruction generation (CPU-Specific Optimization = Flags). >=20 > I think that using a single configuration directive for these four = distinct aspects of just-in-compilation is a bad idea. Many will, at = least at first glance, mistake the value for a bitmask. >=20 > I think it would be best to split up opcache.jit into five separate = configuration directives and propose the following names: >=20 > * opcache.jit for (de)activating JIT > * opcache.jit_optimization_level for setting the optimization level > * opcache.jit_trigger for configuring the JIT trigger > * opcache.jit_register_allocation for configuring register allocation > * opcache.jit_cpu_flags for configuring CPU-specific flags >=20 > What do you think? >=20 > -- > [1] https://wiki.php.net/rfc/jit#phpini_defaults +1 for improving developer experience. Now=E2=80=99s the time to make = this easier for folks to use. If we wait until after GA, we=E2=80=99ll = have to support the harder-to-use sequence of digits for at least the = rest of 8.x. Cheers, Ben --Apple-Mail=_E5FC5416-2C14-4FAD-8E18-BA5CA0272862 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXpXCjwAKCRCwLZeYnIwH G68IAP49m2AJ4akzBDHasjDT/rdwY6eh8lHKaksYUYMFO0T9pgD9HK8uwYRmQFYR 1830DHsPcyTsvv5vVJn3r7YiOneLEJw= =tvP2 -----END PGP SIGNATURE----- --Apple-Mail=_E5FC5416-2C14-4FAD-8E18-BA5CA0272862--