English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
command line invocation performances
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-03-30 (02:42)
From: Eric Cooper <ecc@c...>
Subject: Re: [Caml-list] command line invocation performances
On Wed, Mar 29, 2006 at 05:54:47PM -0800, jean-david hsu wrote:
> Is there significant performance drawback when using Sys.command to call 
> an executable compiled from ocaml code compared to calling the same code 
> from a .cmo ?

I haven't measured it, but I'd expect it to be insignificant compared
to the cost of the fork, exec of sh, sh command-line parsing, and
subsequent exec of your actual command.

Eric Cooper             e c c @ c m u . e d u