comparison lisp/ChangeLog @ 5314:596011a8bf8f

= < > <= >=: it's OK to use the compiler macro when first, last args side effect 2010-12-29 Aidan Kehoe <kehoea@parhasard.net> * cl-macs.el (= < > <= >=): For these functions' compiler macros, the optimisation is safe even if the first and the last arguments have side effects, since they're only used the once.
author Aidan Kehoe <kehoea@parhasard.net>
date Wed, 29 Dec 2010 23:47:30 +0000
parents 5ed261fd2bd9
children 9ac28212c75a
comparison
equal deleted inserted replaced
5313:5ed261fd2bd9 5314:596011a8bf8f
1 2010-12-29 Aidan Kehoe <kehoea@parhasard.net>
2
3 * cl-macs.el (= < > <= >=):
4 For these functions' compiler macros, the optimisation is safe
5 even if the first and the last arguments have side effects, since
6 they're only used the once.
7
1 2010-12-29 Aidan Kehoe <kehoea@parhasard.net> 8 2010-12-29 Aidan Kehoe <kehoea@parhasard.net>
2 9
3 * cl-macs.el (inline-side-effect-free-compiler-macros): 10 * cl-macs.el (inline-side-effect-free-compiler-macros):
4 Unroll a loop here at macro-expansion time, so these compiler 11 Unroll a loop here at macro-expansion time, so these compiler
5 macros are compiled. Use #'eql instead of #'eq in a couple of 12 macros are compiled. Use #'eql instead of #'eq in a couple of