[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: byte-opt.el addition - optimize list of compile-time constants
From: |
David Kastrup |
Subject: |
Re: byte-opt.el addition - optimize list of compile-time constants |
Date: |
Thu, 09 Dec 2004 10:10:09 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> (disassemble
>> (lambda nil
>> `(:a 1 :b 2
>> :c ,#'(lambda nil (when (eq (following-char) ?\n) (forward-char 1))))))
> [...]
>> second place, byte-optimize-pure-func is called, but the optimization
>> fails because a (function ...) form appears inside the arguments to
>> list, which does not count as byte-compile-constp. This is the other
>
> Hmm... we should probably update byte-compile-constp to accept
> (function ...) just like it accepts (quote ...).
IIRC, this difference was the whole point of (function ...) in the
first place: that function objects could get optimized on
byte-compilation for better speed.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: byte-opt.el addition - optimize list of compile-time constants, (continued)
- Re: byte-opt.el addition - optimize list of compile-time constants, David Kastrup, 2004/12/09
- Re: byte-opt.el addition - optimize list of compile-time constants, Miles Bader, 2004/12/09
- Re: byte-opt.el addition - optimize list of compile-time constants, David Kastrup, 2004/12/09
- Re: byte-opt.el addition - optimize list of compile-time constants, Stefan Monnier, 2004/12/09
- Re: byte-opt.el addition - optimize list of compile-time constants, Zack Weinberg, 2004/12/09
- Re: byte-opt.el addition - optimize list of compile-time constants, Stefan Monnier, 2004/12/09
- Re: byte-opt.el addition - optimize list of compile-time constants,
David Kastrup <=
- Re: byte-opt.el addition - optimize list of compile-time constants, Paul Pogonyshev, 2004/12/08
- Re: byte-opt.el addition - optimize list of compile-time constants, Andreas Schwab, 2004/12/09