Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111690 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 20572 invoked from network); 26 Aug 2020 08:49:27 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Aug 2020 08:49:27 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 81FA718050B for ; Wed, 26 Aug 2020 00:52:31 -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,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 ; Wed, 26 Aug 2020 00:52:27 -0700 (PDT) Received: by mail-lf1-f50.google.com with SMTP id j15so458931lfg.7 for ; Wed, 26 Aug 2020 00:52:27 -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=d7LcDYxkJy2/JGB7mguAfPBP9bkp9+rah9/gIiXaOBQ=; b=a69heaPk30LoJmdyDtoeZWM/CxP9iwhpXljgdDDXoKgQNSiCwU1C74/7x6DYEybywQ DIFVcsPh7/ifcShlLwZN+W+zPgVBmZQuJ29W3wPbsVXJCUIXrWLgkbasLwxKDok7Csu5 vHGshSujLnVzmq+2X/k+DzuPefjqpH5lOlyXiz+bGLJEhfEhM3PhDKlVsmGiMDvV1OeN ZiamjiENmEAtofitLlPtfH8twN97uE0rI/5sjmzHpWJuEZwZ+vDPEvo5yKYZkoc2zkwY Zbwui6H3/ZQLs9OOjqaGMue5AMwSDZuKZN2CRAInMuSzj99mQ90vM+MKirWQvWRgSN2M YzSw== 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=d7LcDYxkJy2/JGB7mguAfPBP9bkp9+rah9/gIiXaOBQ=; b=rF3+X2FL92/Idwn5ZzRDKmsdc28nvOq+TqedxoMVQ3a8r96Y2fzVhGzW3LAgnZhilN QE5Q+6uxTs5RIhQzZh1z4F3KRw4XPnO4EnIDAMSLV4acOPjV3/m4N+2BPCLI6ZR3Fx4X 93MU00VywxDaVT9HQUXnnfXvRAEpUzfrnqyUve5jg9eOKXPojCJH1O7vPpsMcBamNQDk qa4gpODf4QoYGIvp+pyEowX3A/DFGoSJeYPuAs/pAWEFWF0bzyEC+9CM5sPeOZ07SRDY 3eN9gv8yMo4PGDXEBwmjsmx+IwQuTW2gLDQbJ0ap7VgBM3g/WKSFUXH88RgHVuJY6bVg D4iQ== X-Gm-Message-State: AOAM531LGmN4LbofGATKZPkV+25tklfMQesg9FygQesKkgInpL+0NZC8 BYy1e6OlVUpHZm4exQc7gpT/EtpovOsvsZkDpBI= X-Google-Smtp-Source: ABdhPJxbsxZSFvkrTy93ixscBg/jK0J0IFrErcZ2vr6CkaAeMasK9DblnTtnmOP6teDhbFPPnJw5AZqqWGzxP7AhMqA= X-Received: by 2002:a19:f207:: with SMTP id q7mr6326032lfh.148.1598428345488; Wed, 26 Aug 2020 00:52:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 26 Aug 2020 09:52:08 +0200 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000bb591705adc319e0" Subject: Re: [PHP-DEV] Session mm support From: alexinbeijing@gmail.com (Alex) --000000000000bb591705adc319e0 Content-Type: text/plain; charset="UTF-8" I guess the first question is: Why is it so slow? I don't think that using shared memory to store data is inherently slower than storing it anywhere else. It might be that spending an hour or two profiling and optimizing could slash this time right down. On Wed, Aug 26, 2020 at 9:37 AM Nikita Popov wrote: > Hi internals, > > I've recently found out that compiling PHP with --with-mm has a massive > negative impact on PHP startup performance (approximately 3-4 times > slower), to the point that our CI got approximately 2x slower overall with > it enabled. This is not great. > > As I only found out about the existence of this session backend recently, > I'm wondering how widely it is used, and whether we wouldn't be better off > dropping it from php-src. The performance characteristics make it a pretty > big foot-gun. > > Regards, > Nikita > --000000000000bb591705adc319e0--