diff options
| -rw-r--r-- | lispref/tips.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lispref/tips.texi b/lispref/tips.texi index c029ee1d451..538affd7450 100644 --- a/lispref/tips.texi +++ b/lispref/tips.texi | |||
| @@ -452,6 +452,13 @@ Profile your program with the @file{elp} library. See the file | |||
| 452 | @file{elp.el} for instructions. | 452 | @file{elp.el} for instructions. |
| 453 | 453 | ||
| 454 | @item | 454 | @item |
| 455 | @cindex @file{benchmark.el} | ||
| 456 | @cindex benchmarking | ||
| 457 | Check the speed of individual Emacs Lisp forms using the | ||
| 458 | @file{benchmark} library. See the functions @code{benchmark-run} and | ||
| 459 | @code{benchmark-run-compiled} in @file{benchmark.el}. | ||
| 460 | |||
| 461 | @item | ||
| 455 | Use iteration rather than recursion whenever possible. | 462 | Use iteration rather than recursion whenever possible. |
| 456 | Function calls are slow in Emacs Lisp even when a compiled function | 463 | Function calls are slow in Emacs Lisp even when a compiled function |
| 457 | is calling another compiled function. | 464 | is calling another compiled function. |