Mercurial > emacs
comparison lispref/tips.texi @ 61056:0b041af08b4a
(Compilation Tips): Mention benchmark.el.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 28 Mar 2005 21:11:28 +0000 |
parents | a0cca815ceaa |
children | 551071b66329 4da4a09e8b1b |
comparison
equal
deleted
inserted
replaced
61055:bf4d29c5de63 | 61056:0b041af08b4a |
---|---|
448 @cindex profiling | 448 @cindex profiling |
449 @cindex timing programs | 449 @cindex timing programs |
450 @cindex @file{elp.el} | 450 @cindex @file{elp.el} |
451 Profile your program with the @file{elp} library. See the file | 451 Profile your program with the @file{elp} library. See the file |
452 @file{elp.el} for instructions. | 452 @file{elp.el} for instructions. |
453 | |
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}. | |
453 | 460 |
454 @item | 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. |