Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99623 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47741 invoked from network); 23 Jun 2017 03:48:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2017 03:48:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.181 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.181 mail-qk0-f181.google.com Received: from [209.85.220.181] ([209.85.220.181:35386] helo=mail-qk0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/3A-52620-69F8C495 for ; Thu, 22 Jun 2017 23:48:38 -0400 Received: by mail-qk0-f181.google.com with SMTP id 16so27326307qkg.2 for ; Thu, 22 Jun 2017 20:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pNA2ixf2pgX2tvhorRC3JnPwAqtUFwLhxV98rNhK/ac=; b=al6daDgaMN/AmGVqAvE4IscHaGfOnRjvcYbUnlRqsLiI0KCDsrzimjJ0h9/xv/fE9l nk5zNPApgxCh3IYXDLfCilfGfkCVeSkRZF9iknxw4YTmHrF3eJCnzmGbrXSRJWPvb6/o 55yEKJlWpJqT4J1h+s0ieSbx4mcqS+ng1g1eNu3JMeyW6R1+zw1riVEH5hWg93ZSuEf7 yKlZoxeqrahPn6F/+Hl0C1zbb/4IBu1ASUMORezT5RUzVX9YMoAY6IU8QyFs7TIihSsr K12jLuV9+5gFztKL56I4l8HJeNv7d1VE7vc1EpcIutI2HlLu511bwsTj+BqaQyl99uuJ JTgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pNA2ixf2pgX2tvhorRC3JnPwAqtUFwLhxV98rNhK/ac=; b=GNJYvAKKi0uZsfMbQY0hb01ML8kEzmf6TbxiPLRvO9YgCeyZB2a9/OlSlnJX/F9I58 L6iMaccd8nOY5R+BxzRjbW9nAFsMXdyihfO1bFthvKIfk/TNxF31qLNHzJxOQX9h7I5n yPedlRg3KstJKWywm+/vLEUtokNvnqca9qz6EAKnwOKHItGfmodwXc+whUnSbnsKni6k xOz5OfOdyI5fVOYpNGNS8XCKmp5Ae1qIhU6/InAe4p1L3NfwI+s/Dz2hdDasIcXA5O3T wQn27SHoWHY6xdPxrb77+g92vvEcYzdbT4pAa5HO6Vrx7EEKNktWat9bpi9dQwE7JKV9 4pDg== X-Gm-Message-State: AKS2vOxug3aUYhxNe0YM6hrhH43GdzJNtG9AKZdOTa+YYzJ23bftmCZW /7/d67J9/OJeB4FYzSBrQ3MFq616TQ== X-Received: by 10.55.74.131 with SMTP id x125mr7039989qka.5.1498189716216; Thu, 22 Jun 2017 20:48:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.178.152 with HTTP; Thu, 22 Jun 2017 20:48:15 -0700 (PDT) In-Reply-To: References: Date: Fri, 23 Jun 2017 11:48:15 +0800 Message-ID: To: Dmitry Stogov Cc: "nikita.ppv@gmail.com" , Bob Weinand , PHP internals list Content-Type: multipart/alternative; boundary="001a114a7426d761aa055298794c" Subject: Re: Request shutdown optimization From: laruence@gmail.com (Xinchen Hui) --001a114a7426d761aa055298794c Content-Type: text/plain; charset="UTF-8" Hey: On Thu, Jun 22, 2017 at 3:29 PM, Dmitry Stogov wrote: > hi, > > > could you, please, review the PR https://github.com/php/php-src/pull/2591 > > > The main idea is not to free request-allocated zvals, because they are > freed by Zend MM anyway. > > Also, shutdown_executor() code was simplified by calling destructors and > closing resources, before freeing data. > > > all tests are passed. > I don't see any problems, (just one concern, fast_shutdown is only enable in non-debug mode, which may cause troubles for debuging fast_shutdown problems, maybe we could change it to : fast_shutdown = #if ZEND_DEBUG !report_memleaks && #endif is_zend_mm && !full_table_clean; ), anyway, this feature is already exists in opcache for quite a long time, so I think could commit it. thanks > > Thanks. Dmitry. > -- Xinchen Hui @Laruence http://www.laruence.com/ --001a114a7426d761aa055298794c--