# HG changeset patch # User Richard M. Stallman # Date 1112044288 0 # Node ID 0b041af08b4a0991459875d1444fc4d5f323b27a # Parent bf4d29c5de63616460de21355564a129317928e7 (Compilation Tips): Mention benchmark.el. diff -r bf4d29c5de63 -r 0b041af08b4a lispref/tips.texi --- a/lispref/tips.texi Mon Mar 28 21:11:16 2005 +0000 +++ b/lispref/tips.texi Mon Mar 28 21:11:28 2005 +0000 @@ -452,6 +452,13 @@ @file{elp.el} for instructions. @item +@cindex @file{benchmark.el} +@cindex benchmarking +Check the speed of individual Emacs Lisp forms using the +@file{benchmark} library. See the functions @code{benchmark-run} and +@code{benchmark-run-compiled} in @file{benchmark.el}. + +@item Use iteration rather than recursion whenever possible. Function calls are slow in Emacs Lisp even when a compiled function is calling another compiled function.