Mercurial > hg > xemacs-beta
diff man/lispref/compile.texi @ 219:262b8bb4a523 r20-4b8
Import from CVS: tag r20-4b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:09:35 +0200 |
parents | d44af0c54775 |
children | 70ad99077275 |
line wrap: on
line diff
--- a/man/lispref/compile.texi Mon Aug 13 10:08:36 2007 +0200 +++ b/man/lispref/compile.texi Mon Aug 13 10:09:35 2007 +0200 @@ -60,24 +60,30 @@ @end group @group -(silly-loop 100000) -@result{} ("Fri Mar 18 17:25:57 1994" - "Fri Mar 18 17:26:28 1994") ; @r{31 seconds} +(silly-loop 5000000) +@result{} ("Fri Nov 28 20:56:16 1997" + "Fri Nov 28 20:56:39 1997") ; @r{23 seconds} @end group @group (byte-compile 'silly-loop) -@result{} #<compiled-function ...> +@result{} #<compiled-function +(from "loadup.el") +(n) +"...(23)" +[current-time-string t1 n 0] +2 +"Return time before and after N iterations of a loop."> @end group @group -(silly-loop 100000) -@result{} ("Fri Mar 18 17:26:52 1994" - "Fri Mar 18 17:26:58 1994") ; @r{6 seconds} +(silly-loop 5000000) +@result{} ("Fri Nov 28 20:57:49 1997" + "Fri Nov 28 20:57:55 1997") ; @r{6 seconds} @end group @end example - In this example, the interpreted code required 31 seconds to run, + In this example, the interpreted code required 23 seconds to run, whereas the byte-compiled code required 6 seconds. These results are representative, but actual results will vary greatly. @@ -134,11 +140,13 @@ @group (byte-compile 'factorial) - @result{} -#<compiled-function (integer) - "ÁU«‚Á‡ÂS!_‡" - [integer 1 factorial] - 3 "Compute factorial of INTEGER."> +@result{} #<compiled-function +(from "loadup.el") +(integer) +"...(21)" +[integer 1 factorial] +3 +"Compute factorial of INTEGER."> @end group @end example @@ -463,12 +471,9 @@ @example #<compiled-function - (&optional arg) - "¬‚ÁÂ[!‡" - [arg 1 forward-sexp] - 2 - 579173 - "_p"> +(from "lisp.elc") +(&optional arg) +"...(15)" [arg 1 forward-sexp] 2 854740 "_p"> @end example The primitive way to create a compiled-function object is with