GNU bug report logs - #35321
[PATCH] * src/bytecode.c (exec_byte_code) Unroll Blist3 and Blist4

Previous Next

Package: emacs;

Reported by: Alex Gramiak <agrambot <at> gmail.com>

Date: Fri, 19 Apr 2019 14:42:01 UTC

Severity: wishlist

Tags: fixed, patch

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35321 in the body.
You can then email your comments to 35321 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#35321; Package emacs. (Fri, 19 Apr 2019 14:42:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alex Gramiak <agrambot <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 19 Apr 2019 14:42:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alex Gramiak <agrambot <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] * src/bytecode.c (exec_byte_code) Unroll Blist3 and Blist4
Date: Fri, 19 Apr 2019 08:41:43 -0600
[Message part 1 (text/plain, inline)]
Hopefully someone with experience in the byte compiler can affirm that
this is okay. It passes make check for me (outside of 1 flymake error
that occurs in master as well).

[0001-src-bytecode.c-exec_byte_code-Unroll-Blist3-and-Blis.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35321; Package emacs. (Fri, 19 Apr 2019 15:10:02 GMT) Full text and rfc822 format available.

Message #8 received at 35321 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alex Gramiak <agrambot <at> gmail.com>
Cc: 35321 <at> debbugs.gnu.org
Subject: Re: bug#35321: [PATCH] * src/bytecode.c (exec_byte_code) Unroll Blist3
 and Blist4
Date: Fri, 19 Apr 2019 18:08:53 +0300
> From: Alex Gramiak <agrambot <at> gmail.com>
> Date: Fri, 19 Apr 2019 08:41:43 -0600
> 
> Hopefully someone with experience in the byte compiler can affirm that
> this is okay. It passes make check for me (outside of 1 flymake error
> that occurs in master as well).

Does this produce any tangible performance gains?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35321; Package emacs. (Fri, 19 Apr 2019 20:31:01 GMT) Full text and rfc822 format available.

Message #11 received at 35321 <at> debbugs.gnu.org (full text, mbox):

From: Alex Gramiak <agrambot <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 35321 <at> debbugs.gnu.org
Subject: Re: bug#35321: [PATCH] * src/bytecode.c (exec_byte_code) Unroll
 Blist3 and Blist4
Date: Fri, 19 Apr 2019 14:30:03 -0600
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Alex Gramiak <agrambot <at> gmail.com>
>> Date: Fri, 19 Apr 2019 08:41:43 -0600
>> 
>> Hopefully someone with experience in the byte compiler can affirm that
>> this is okay. It passes make check for me (outside of 1 flymake error
>> that occurs in master as well).
>
> Does this produce any tangible performance gains?

It seems to be within error. I was just in the byte compiler recently
and saw that Blist3/4 don't use list3/4 like Blist2 uses list2. If
you're worried about touching older code for little gain, then I guess
it's safer to leave it alone.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35321; Package emacs. (Fri, 19 Apr 2019 20:50:01 GMT) Full text and rfc822 format available.

Message #14 received at 35321 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alex Gramiak <agrambot <at> gmail.com>
Cc: 35321 <at> debbugs.gnu.org
Subject: Re: bug#35321: [PATCH] * src/bytecode.c (exec_byte_code) Unroll
 Blist3 and Blist4
Date: Fri, 19 Apr 2019 23:49:13 +0300
> From: Alex Gramiak <agrambot <at> gmail.com>
> Cc: 35321 <at> debbugs.gnu.org
> Date: Fri, 19 Apr 2019 14:30:03 -0600
> 
> > Does this produce any tangible performance gains?
> 
> It seems to be within error. I was just in the byte compiler recently
> and saw that Blist3/4 don't use list3/4 like Blist2 uses list2. If
> you're worried about touching older code for little gain, then I guess
> it's safer to leave it alone.

Is there any reason other than performance to make the change?

Also, are Blist3/4 used frequently enough to justify the change?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35321; Package emacs. (Fri, 19 Apr 2019 21:32:02 GMT) Full text and rfc822 format available.

Message #17 received at 35321 <at> debbugs.gnu.org (full text, mbox):

From: Alex Gramiak <agrambot <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 35321 <at> debbugs.gnu.org
Subject: Re: bug#35321: [PATCH] * src/bytecode.c (exec_byte_code) Unroll
 Blist3 and Blist4
Date: Fri, 19 Apr 2019 15:31:01 -0600
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Alex Gramiak <agrambot <at> gmail.com>
>> Cc: 35321 <at> debbugs.gnu.org
>> Date: Fri, 19 Apr 2019 14:30:03 -0600
>> 
>> > Does this produce any tangible performance gains?
>> 
>> It seems to be within error. I was just in the byte compiler recently
>> and saw that Blist3/4 don't use list3/4 like Blist2 uses list2. If
>> you're worried about touching older code for little gain, then I guess
>> it's safer to leave it alone.
>
> Is there any reason other than performance to make the change?

There's no functional difference, so the only remaining aspects are
readability and similarity with the other BlistX cases. I suppose it
loses on the readability front, and it's not much of an issue to be
dissimilar to Blist2. Perhaps it's best to leave this alone after all.

> Also, are Blist3/4 used frequently enough to justify the change?

They're used any time (list x y z) and (list w x y z) are byte-compiled,
so I imagine they're used quite a bit.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35321; Package emacs. (Sat, 20 Apr 2019 06:21:02 GMT) Full text and rfc822 format available.

Message #20 received at 35321 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alex Gramiak <agrambot <at> gmail.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 35321 <at> debbugs.gnu.org
Subject: Re: bug#35321: [PATCH] * src/bytecode.c (exec_byte_code) Unroll
 Blist3 and Blist4
Date: Sat, 20 Apr 2019 09:20:07 +0300
> From: Alex Gramiak <agrambot <at> gmail.com>
> Cc: 35321 <at> debbugs.gnu.org
> Date: Fri, 19 Apr 2019 15:31:01 -0600
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: Alex Gramiak <agrambot <at> gmail.com>
> >> Cc: 35321 <at> debbugs.gnu.org
> >> Date: Fri, 19 Apr 2019 14:30:03 -0600
> >> 
> >> > Does this produce any tangible performance gains?
> >> 
> >> It seems to be within error. I was just in the byte compiler recently
> >> and saw that Blist3/4 don't use list3/4 like Blist2 uses list2. If
> >> you're worried about touching older code for little gain, then I guess
> >> it's safer to leave it alone.
> >
> > Is there any reason other than performance to make the change?
> 
> There's no functional difference, so the only remaining aspects are
> readability and similarity with the other BlistX cases. I suppose it
> loses on the readability front, and it's not much of an issue to be
> dissimilar to Blist2. Perhaps it's best to leave this alone after all.
> 
> > Also, are Blist3/4 used frequently enough to justify the change?
> 
> They're used any time (list x y z) and (list w x y z) are byte-compiled,
> so I imagine they're used quite a bit.

OK, thanks.  I'm undecided on this.  Stefan, any comments?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35321; Package emacs. (Sat, 20 Apr 2019 20:06:02 GMT) Full text and rfc822 format available.

Message #23 received at 35321 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 35321 <at> debbugs.gnu.org, Alex Gramiak <agrambot <at> gmail.com>
Subject: Re: bug#35321: [PATCH] * src/bytecode.c (exec_byte_code) Unroll
 Blist3 and Blist4
Date: Sat, 20 Apr 2019 16:05:16 -0400
> OK, thanks.  I'm undecided on this.  Stefan, any comments?

I don't see any reason to reject the change.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35321; Package emacs. (Fri, 03 May 2019 08:42:02 GMT) Full text and rfc822 format available.

Message #26 received at 35321 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 35321 <at> debbugs.gnu.org, agrambot <at> gmail.com
Subject: Re: bug#35321: [PATCH] * src/bytecode.c (exec_byte_code) Unroll
 Blist3 and Blist4
Date: Fri, 03 May 2019 11:41:16 +0300
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Alex Gramiak <agrambot <at> gmail.com>,  35321 <at> debbugs.gnu.org
> Date: Sat, 20 Apr 2019 16:05:16 -0400
> 
> > OK, thanks.  I'm undecided on this.  Stefan, any comments?
> 
> I don't see any reason to reject the change.

OK, so Alex, please go ahead, and thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35321; Package emacs. (Sun, 23 Jun 2019 17:37:01 GMT) Full text and rfc822 format available.

Message #29 received at 35321 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 35321 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>,
 agrambot <at> gmail.com
Subject: Re: bug#35321: [PATCH] * src/bytecode.c (exec_byte_code) Unroll
 Blist3 and Blist4
Date: Sun, 23 Jun 2019 19:36:27 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
>> Cc: Alex Gramiak <agrambot <at> gmail.com>,  35321 <at> debbugs.gnu.org
>> Date: Sat, 20 Apr 2019 16:05:16 -0400
>> 
>> > OK, thanks.  I'm undecided on this.  Stefan, any comments?
>> 
>> I don't see any reason to reject the change.
>
> OK, so Alex, please go ahead, and thanks.

It looks like applying the patch was forgotten, so I've now applied
Alex' patch to master.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 23 Jun 2019 17:37:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 35321 <at> debbugs.gnu.org and Alex Gramiak <agrambot <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 23 Jun 2019 17:37:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 22 Jul 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 280 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.