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
commands.getoutput () in ocaml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-08-22 (23:26)
From: Dave Benjamin <dave@r...>
Subject: Re: [Caml-list] commands.getoutput () in ocaml?
On Wed, 22 Aug 2007, Eric Cooper wrote:

> On Thu, Aug 23, 2007 at 12:35:14AM +0200, Olivier Andrieu wrote:
>> you could use Buffer.add_substring instead of add_string, that will
>> avoid an intermediate copy of the string
> And you can use Buffer.add_channel to avoid intermediate strings
> altogether (until the final Buffer.to_string).

Thanks, guys! I really appreciate the feedback, and will make these 
suggested improvements (though it may take awhile to show up on the site). 
If you find any other mistakes, please let me know.