diff options
| author | Richard M. Stallman | 2005-03-28 21:11:28 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-03-28 21:11:28 +0000 |
| commit | 6b7abae0d005704f456671b8fa571ce4ca3aeb15 (patch) | |
| tree | 27a5f740e2f5d535e3e98458436514f990c00bfe | |
| parent | 1d7485128080719d798c2865aea75f20b3cf850d (diff) | |
| download | emacs-6b7abae0d005704f456671b8fa571ce4ca3aeb15.tar.gz emacs-6b7abae0d005704f456671b8fa571ce4ca3aeb15.zip | |
(Compilation Tips): Mention benchmark.el.
| -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. |