Next: Warning Tips, Previous: Programming Tips, Up: Tips [Contents][Index]
Here are ways of improving the execution speed of byte-compiled Lisp programs.
memq
, member
,
assq
, or assoc
is even faster than explicit iteration. It
can be worth rearranging a data structure so that one of these primitive
search functions can be used.
byte-compile
property. If the property is non-nil
, then the function is
handled specially.
For example, the following input will show you that aref
is
compiled specially (see Array Functions):
(get 'aref 'byte-compile) ⇒ byte-compile-two-args
Note that in this case (and many others), you must first load the
bytecomp library, which defines the byte-compile
property.
Next: Warning Tips, Previous: Programming Tips, Up: Tips [Contents][Index]