From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Chris Gregory Newsgroups: gmane.emacs.devel Subject: Re: Define progn_ignore to run Fprogn and ignore output Date: Tue, 27 Dec 2016 10:28:35 -0600 Message-ID: References: <871swum82w.fsf@CzipperZag.i-did-not-set--mail-host-address--so-tickle-me> <83pokdx4z2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c189cee7332bd0544a65ac9 X-Trace: blaine.gmane.org 1482856173 17759 195.159.176.226 (27 Dec 2016 16:29:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Dec 2016 16:29:33 +0000 (UTC) Cc: Emacs Development Mailing List To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 27 17:29:30 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLucw-0003h5-1k for ged-emacs-devel@m.gmane.org; Tue, 27 Dec 2016 17:29:26 +0100 Original-Received: from localhost ([::1]:54877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLud0-0005BF-H4 for ged-emacs-devel@m.gmane.org; Tue, 27 Dec 2016 11:29:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLucp-0005AC-W4 for emacs-devel@gnu.org; Tue, 27 Dec 2016 11:29:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLucp-0001WL-19 for emacs-devel@gnu.org; Tue, 27 Dec 2016 11:29:19 -0500 Original-Received: from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234]:34964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cLucn-0001UM-Fw; Tue, 27 Dec 2016 11:29:17 -0500 Original-Received: by mail-io0-x234.google.com with SMTP id n85so82379980ioi.2; Tue, 27 Dec 2016 08:29:17 -0800 (PST) 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=lxs28NcDlbyx1yMaEEPjLggApIjNl0jHGv+RAfnNPN0=; b=KY2Y0Z07wzqO+tBgkKQl7Bnmb4bvhEhBiXSswrqDxwLoFElYDUlJUoXFl1mruXtbWx snQRKQOGBktNUivE2MJNOQsfDV1DbxMY51Tr+FE24kK5fgAJqMVPUVpbvglKmJ1BsBag hTzikVms1VaEhH2yJMfym7S1sur4q4X5H0JogUC4I6/GAJwTQkE6PkBIyKJ1R04w2s4q NcKQyCfAD3iPERto5Mc+JmRa5d/ZViaw9iRbXy9G6E5t1WOvUFcMNSa7tUb6rzwuad7d Zr0iVOMedde8Mv4QImX60exjuQ5zqtNkJwC7JbkewGZUBrHO9sus2t/e+9L7cZXCnAWV keqQ== 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=lxs28NcDlbyx1yMaEEPjLggApIjNl0jHGv+RAfnNPN0=; b=S1m6g04eJKSTHwm8akUUL4gpF1yBBZJSCD8XJuLKGrrodwF0h/zxr/cDxaV4m3519w Z0H1ggyvJAaQV7XDfAOHWqx3tjqJK4Q0HyZQeO5YqxAX5kjVl9ujioJobfKTT2MvgIJ5 4kBRXTKLG++W81oP7GcyohfzpMOfMonG/6exYo3Zhx2hkPno0dbt6kjHhneEvPHS7ZOS jQmmjiC0gpjgXM6Vh1LGswTTjI49HT+rvxUJhfkgK9FIpy3BCE32De9CZpe4JtrkKZRs +/ZaQTIijyf+jx74tKJKEZ/y+fHMjvwpgtZLiQ4YqX3u0jvYS0bUGkjJgjMSk0qZBd0H WbXw== X-Gm-Message-State: AIkVDXLlaeNAzrIn2qpdnUQ0gfV4w/zQzkBbxXLkuZzL8fiDBYBcvmexQpN2Gek0+ejKP+fKVxKuiLotImZNmw== X-Received: by 10.107.195.204 with SMTP id t195mr24093360iof.46.1482856156305; Tue, 27 Dec 2016 08:29:16 -0800 (PST) Original-Received: by 10.50.191.197 with HTTP; Tue, 27 Dec 2016 08:28:35 -0800 (PST) In-Reply-To: <83pokdx4z2.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c06::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:210844 Archived-At: --94eb2c189cee7332bd0544a65ac9 Content-Type: text/plain; charset=UTF-8 It was just a guess to be perfectly honest. I'll try to benchmark it tomorrow. If it inlines the function to Fprogn then there is no benefit to performance (assuming it elides the Lisp_Object completely). The code, however, is cleaner now. I'll look through the rest of the code for Fprogn usages. Sincerely, Chris Gregory On Tue, Dec 27, 2016 at 12:26 AM, Eli Zaretskii wrote: > > From: Chris Gregory > > Date: Mon, 26 Dec 2016 20:14:47 -0600 > > > > This patch defines progn_ignore to do Fprogn but not return a result. > > This will minorly speed up all operations using `unwind_body'. > > Thanks. Can you give some numbers that show what kind of speed-up > this will yield? > --94eb2c189cee7332bd0544a65ac9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It was just a guess to be= perfectly honest. I'll try to benchmark it tomorrow. If it inlines the= function to Fprogn then there is no benefit to performance (assuming it el= ides the Lisp_Object completely). The code, however, is cleaner now. I'= ll look through the rest of the code for Fprogn usages.

Sincerely,<= br>

Chris Gregory

On Tue, Dec 27, 2016 at 12:26 AM, Eli Zarets= kii <eliz@gnu.org> wrote:
> = From: Chris Gregory <czipperz@gmai= l.com>
> Date: Mon, 26 Dec 2016 20:14:47 -0600
>
> This patch defines progn_ignore to do Fprogn but not return a result.<= br> > This will minorly speed up all operations using `unwind_body'.

Thanks.=C2=A0 Can you give some numbers that show what kind of speed= -up
this will yield?

--94eb2c189cee7332bd0544a65ac9--