Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94418 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73524 invoked from network); 7 Jul 2016 15:37:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jul 2016 15:37:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.213.46 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.213.46 mail-vk0-f46.google.com Received: from [209.85.213.46] ([209.85.213.46:35705] helo=mail-vk0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/CA-18622-B277E775 for ; Thu, 07 Jul 2016 11:37:16 -0400 Received: by mail-vk0-f46.google.com with SMTP id v6so25040103vkb.2 for ; Thu, 07 Jul 2016 08:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pthreads-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2jnWOf61rmBJQGNVmId4VGGsiG70IBUdgW8Eyvgjl5M=; b=xoZuG8qgmVMQ7LcOD3DiQNAib1qCmBkcoZ8VWyRu23H0luWPuWD46VyG6Gm04upznK VXAagXq4q1R8/nw71LAHupbPxwCBP2mxyybBMouZ9dZX9p7afHIffRgRzbuWMApRnWxY lt2ezSo7IGIBVwaM01vT1AGxKCmYtuSjT9xUk+Sli1kjSX4GW07bcHatWfGRkdiwcDkA 0dKutzBMid2kpGLjaDRyWtLxk3HGFVIGn/8H/U28Y4dZzffzafx92DP82XANH0LjF42E qtaK5akw82ujbv3V8FYW6VSXl6ndPzxEDckxLPrRi5hiFkZStX7sBuJ0p1b+zCrqQiOk CJ5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2jnWOf61rmBJQGNVmId4VGGsiG70IBUdgW8Eyvgjl5M=; b=XpVj8jB0bNisw9a2+wMHAFMVjhm4GdBn3eWpzilIgan62wXJ95pBhlQXa9B66FeaC/ noTgaezj6O7e+XxWr7vx2BdQhUnIAmBTX2l3Ogwqq8cLjJk3xSwr5fi0gtQuiBONL7tI fJH9sKcMEH72Zpyo/HUDEsYyqokGLEvZ2pumHikqURLgNv2nNQSFxnBeqtvc+qpwyWOD GAbqzbbknPnvDJCXG0YhsU/iTMGvShMHVZHxxTtI3rYLscZUxkF5PQ8vFEPLaLHbSnyO GSedLXp7z/A8yKNSxE5JdT4zgGblylQdVTO7ZAGIG+i86Ewxb0wR8CUnaWcTRQcOGyTg ZQOA== X-Gm-Message-State: ALyK8tIEXtoqUygNAIvrz7tbEsT07i7EeOElaMkfLk4DOBOsg70VaD+cCYEB2m8egigF7Cq7MZqcLKAOhTELvw== X-Received: by 10.176.4.3 with SMTP id 3mr388953uav.127.1467905832272; Thu, 07 Jul 2016 08:37:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.6.69 with HTTP; Thu, 7 Jul 2016 08:37:11 -0700 (PDT) X-Originating-IP: [109.157.60.99] In-Reply-To: References: Date: Thu, 7 Jul 2016 16:37:11 +0100 Message-ID: To: David Walker Cc: Dmitry Stogov , PHP internals , "bishop@php.net" , "davey@php.net" Content-Type: multipart/alternative; boundary=94eb2c063734b25c6e05370d75fc Subject: Re: [PHP-DEV] [RFC] Additional context in pcntl_signal handler (was Re: [PHP-DEV] pcntl_signal & sa_siginfo) From: pthreads@pthreads.org (Joe Watkins) --94eb2c063734b25c6e05370d75fc Content-Type: text/plain; charset=UTF-8 Afternoon, The last alpha is going out today. There will be two weeks before the first beta, which is feature freeze. Cheers Joe On Thu, Jul 7, 2016 at 3:20 PM, David Walker wrote: > On Thu, Jun 23, 2016 at 1:49 PM David Walker wrote: > >> On Thu, Jun 23, 2016 at 12:26 PM Dmitry Stogov wrote: >> >>> BTW: I'm not sure what pcntl_sigaction() could return as the "oldact" >>> argument..., so may be the original proposal is good enough. >>> ------------------------------ >>> *From:* Dmitry Stogov >>> *Sent:* Thursday, June 23, 2016 9:02:55 PM >>> *To:* PHP internals; bishop@php.net; Joe Watkins; davey@php.net >>> *Cc:* David Walker >>> *Subject:* Re: [PHP-DEV] [RFC] Additional context in pcntl_signal >>> handler (was Re: [PHP-DEV] pcntl_signal & sa_siginfo) >>> >>> Hi, >>> >>> >>> To keep maximum compatibility and eliminate unnecessary additional >>> overhead, I would keep pcntl_signal() unchanged, but add pcntl_sigaction() >>> with the ability to specify the need for the second argument (In the same >>> way as POSIX does). >>> >>> >>> Joe, Davey, when we stop targeting new RFCs for 7.1? >>> >> >> >> Now, this being my first attempt at contributing to internals, I'm not >> well versed on a best-practices on benchmarking to provide metrics to my >> assumption. (advice very welcomed) >> > > Having run tests through callgrind there is, as expected, a small bit of > overhead. The question is, how much overhead can be safely deemed > negligible for ease of the language? In my basic test wherein I just define > an empty function, set the handler, and trigger the signal there is just > over 13m instructions executed. This change increases the instruction > count by about 2000, or 0.0001%. I would assume keeping a simple > pcntl_signal() with a single handler is more desirable than mitigating the > slight overhead this introduces. > > -- > Dave > --94eb2c063734b25c6e05370d75fc--