[previous] [up] [next]     [index]
Next: Compiling Individual Files with Up: About mzc Previous: Macros and Signatures in

Native Code Optimization from mzc

Compiling a program to native code with mzc can provide significant speedups compared to interpreting byte codes (or running the program directly from source code) for certain kinds of programs. The speedup from native code compilation is typically due to two optimizations:

Programs that permit these optimizations also to encourage a host of other optimizations, such as procedure inlining (for programmer-defined procedures) and static closure detection. In general, unit-based programs provide the most opportunities for optimization.

Native code compilation rarely produces significant speedup for programs that are not loop-intensive, programs that are heavily object-oriented, programs that are allocation-intensive, or programs that exploit built-in procedures (e.g., list operations, regular expression matching, or file manipulations) to perform most of the program's work.


[previous] [up] [next]     [index]
Next: Compiling Individual Files with Up: About mzc Previous: Macros and Signatures in

PLT