[wg-camlp4] benchmarks

Alain Frisch alain.frisch at lexifi.com
Fri Feb 8 06:15:44 GMT 2013

On 2/8/2013 7:13 AM, Alain Frisch wrote:
>   1. Marshaling / demarshaling AST on the process boundaries.
>   2. Spawning new processes.
>   3. Traversing the AST with the ast_mapper class (overhead of method
> dispatch) and rebuilding a new AST in memory.

I forgot:

4. Passing marshaled AST through temporary files.

This is the most portable solution, and the only available with the 
standard library, but one could certainly do better under certain platforms.

-- Alain

More information about the wg-camlp4 mailing list