[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: weird desktop.el change
From: |
Stefan Monnier |
Subject: |
Re: weird desktop.el change |
Date: |
Fri, 13 Apr 2007 15:20:11 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (gnu/linux) |
>> The process of substituting "mapc" for "mapcar" when the result
>> isn't used is not only a hugely widespread tweak in the lisp
>> community (a "no brainer" as you might call it), indeed it's an
>> obvious optimization for even a very stupid lisp compiler...
> Available with this patch:
> 2007-04-13 Markus Triska <address@hidden>
> * emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): rewrite
> `mapcar' to `mapc' when called for effect
Please, let's not add this before the release.
Stefan
PS: I'm not even sure it's a good optimization: in 99% of the cases it would
be better to educate the programmer about mapc by emitting a warning, and in
99% of those cases, it'd be even better to replace the mapc(ar) by
a dolist loop.
- weird desktop.el change, Miles Bader, 2007/04/10
- Re: weird desktop.el change, Juanma Barranquero, 2007/04/10
- Re: weird desktop.el change, Miles Bader, 2007/04/10
- Re: weird desktop.el change, Chong Yidong, 2007/04/10
- Re: weird desktop.el change, Stephen J. Turnbull, 2007/04/11
- Re: weird desktop.el change, Richard Matthew Stallman, 2007/04/11
- Re: weird desktop.el change, Miles Bader, 2007/04/11
- Re: weird desktop.el change, Markus Triska, 2007/04/13
- Re: weird desktop.el change,
Stefan Monnier <=
- Re: weird desktop.el change, Markus Triska, 2007/04/13
- Re: weird desktop.el change, Richard Stallman, 2007/04/13
- Re: weird desktop.el change, Markus Triska, 2007/04/14
- Re: weird desktop.el change, Richard Stallman, 2007/04/15