--- Begin Message ---
Subject: |
24.3.91; bug of `=' operator optimization |
Date: |
Sun, 25 May 2014 12:05:07 +0900 |
(byte-optimize-form '(lambda (a b) (= a b 0)))
==> (lambda (a b) (= a b 0))
(byte-optimize-form '(lambda (a b) (= 0 a b)))
==> (lambda (a b) (= a 0))
- (put '= 'byte-optimizer 'byte-optimize-binary-predicate)
+ (put '= 'byte-optimizer 'byte-optimize-predicate)
-- Shigeru
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#17584: 24.3.91; bug of `=' operator optimization |
Date: |
Mon, 26 May 2014 16:54:33 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
> The following is a code with a little more optimized than
> byte-optimize-predicate. It can be used by `<', `<=', `>', `>='.
Here I also doubt it's worth the trouble: the "multiple arg" version of
those predicates was only added recently so it's not used very often,
and of those cases I doubt many of them would benefit from
your optimization.
So I installed a simpler patch which just fixes the bogus optimization
when there are more than 2 args.
Stefan
--- End Message ---