Browse thread
commands.getoutput () in ocaml?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2007-08-22 (23:04) |
From: | Eric Cooper <ecc@c...> |
Subject: | Re: [Caml-list] commands.getoutput () in ocaml? |
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). -- Eric Cooper e c c @ c m u . e d u