Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122246 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 19278 invoked from network); 24 Jan 2024 16:55:49 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Jan 2024 16:55:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1706115393; bh=oxQa6T823uFMiPOPPGmn7W5Hy7jUWVrO74OZ2aIqUIU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=J267SINJscsyFm+zzwP+LC7nWQEIeSWaoimp7sVrmGlZDXnuPG92Qt4KEIFpp+i+R IoE+XV4gUdhdP1cy3/Oa8pf/grE4KQzTvBd4WdloXILN/FJLrJWdX5fYAd1X9SRSoq J15Nt9DvwR79MDxu0+N393LIH2LHPrBOA8vvNOcl7XXZsSh272igQUUP0s/DppIAJS /kLRmzbVYCakpM8yZtra2MeG++XI0G7FEseSbLRAUWnwL58h9AMb2qABYNrFuA5Nnh IZvhsraXJyvya8rzYepRtnfb1UKWmYdqJJgvtqj661+YVNpfzpO/XlBXeO5pNrByRx 83iLwL7MobVmw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 38C7D180051 for ; Wed, 24 Jan 2024 08:56:32 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-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,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 24 Jan 2024 08:56:31 -0800 (PST) Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-29065efa06fso3397614a91.1 for ; Wed, 24 Jan 2024 08:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706115346; x=1706720146; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oxQa6T823uFMiPOPPGmn7W5Hy7jUWVrO74OZ2aIqUIU=; b=Q0/HHVRlGb9BwrCXoqlcPZUQKqeBGXdNfgE/+NO7cCv31lhStNdTxjqsqtZDE5ISbG dnv6TYfEUpVEt6tCvtfiV4+g5rkdP42Vxa7XUBkuxxcg25fe5KIzKR+ElCgzsIPvv3yw t5OixNsz+PqyEIZF7ESSLXscm4jojNuw7EOLCRzfaLvnW5WpnqI/+1qXujj4G8oKVCLr dSfssGAs9pIkV0Zh1DuFa+IQDQSWI30J+9b3vTZAXdMlz5jL+hS/DUuvFhI5FvTUlTjk aMtFjVui/soMJA0WcTl2t9ADRIWb3Q/v416t5d3TtnGTb5KWGVCr1eKqUqOFfulzSLzJ uImQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706115346; x=1706720146; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oxQa6T823uFMiPOPPGmn7W5Hy7jUWVrO74OZ2aIqUIU=; b=vqFz5fVAQ4h/zfprnyAYDM893CumgxP1TJRmf8q3gUn6M/BLrLUwV3S0TSuqtK+8aD hZj/p3ngNmfRnBl++LeBqqTuQYQG45CVa/VmRRQ0LijXNE/9K/+EnHAkaOs9U5JgPHHP K04cJVLbe2mpy+uA3CtRH6f4eIfUxojel/hUI4a05NSpwoQnnd/gp6gqhk2TjZWqqhG6 IBVkwZUtsxFw0Tu/rsvSCP/lIYrQY7p1qK5E2vbDiwnICT7C3xuVNq6tPvrQFp8kZRFy RpuopxevyjWnKRrWCPD9WeRbUTjXpX8fg0OM2FosmqTWXpCkHSI87E+aRP4hx1VHvRp1 anBQ== X-Gm-Message-State: AOJu0Yw1TSico3CjUn4CA7SskhFwIe5aYFS9wYP9pMNPSSqKg4OlCY8I 7fptRlaTjwSP2tczb3H4Bbm+1PrM5KFBKr2EzKjYmuC8oSqkqHaYScpL52RcVSEc1IjNhJ3RvZC 9eEIcBWhQWxxQtJZEYRdvt5F5L3f4KHPBOrA= X-Google-Smtp-Source: AGHT+IFPbgsdLKGWyaR9ZOLMmOt2+wrNgM4p0i3v7hnTkgSk6fYzJyKWzwUVqQChI2jOVHtC6ZvMrUUiUdicQv9ZucA= X-Received: by 2002:a17:90a:c68b:b0:28c:ea35:44f8 with SMTP id n11-20020a17090ac68b00b0028cea3544f8mr4787255pjt.79.1706115346312; Wed, 24 Jan 2024 08:55:46 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 24 Jan 2024 16:55:34 +0000 Message-ID: To: Hans Henrik Bergan Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="00000000000029b42d060fb3efeb" Subject: Re: [PHP-DEV] BLAKE3 hash From: fenniclog@gmail.com (tag Knife) --00000000000029b42d060fb3efeb Content-Type: text/plain; charset="UTF-8" On Wed, 24 Jan 2024 at 16:27, Hans Henrik Bergan wrote: > Maybe vote on it? (that was suggested in the PR too, > https://github.com/php/php-src/pull/13194#issuecomment-1900430400 ) > > Can think of 6 things > > 1: Should BLAKE3 be added to PHP? yes/no > 2: Should ARM Neon (2007) optimized implementation be bundled? yes/no > 3: Should x86_64 SSE2 (2000) optimized implementation be bundled? yes/no > 4: Should x86_64 SSE4.1 (2007) optimized implementation be bundled? yes/no > 5: Should x86_64 AVX2 (2011) optimized implementation be bundled? yes/no > 6: Should x86_64 AVX512 (2016) optimized implementation be bundled? yes/no > > (wrote the year processors were actually released, not the year > instructions were proposed/announced) > > Arguments against SSE2 and SSE4.1: pretty much all modern CPUs supporting > SSE2/SSE4.1 also support AVX2. > > Argument against AVX512: CloudFlare said in a blogpost that when a core > starts executing AVX512 instructions, it decreases the clock speed of > neighboring cores so much that, quote: > >OpenSSL serves 10% fewer requests per second. And that is a huge number! > It is equivalent to giving up on two cores, for nothing > > and another quote: > > >If you do not require AVX-512 for some specific high performance tasks, I > suggest you disable AVX-512 execution on your server or desktop, to avoid > accidental AVX-512 throttling. > > (ref > https://blog.cloudflare.com/on-the-dangers-of-intels-frequency-scaling > ) > that AVX512 issue is probably cpu-specific and will probably be mitigated > in newer CPU releases > (idk if AMD is even affected, or if it is purely a Intel issue) > > thus they may be worthy of a vote > Should we even be considering the specific instruction implementations? I've always been in the camp of you are not smarter than the compiler. As even the best human written ASM code can be slower than the obscure instructions the compiler might choose to use in a weird and wonderful way. --00000000000029b42d060fb3efeb--