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
Documentation request: allocation of bigarrays in C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-04-03 (23:45)
From: Nathaniel Gray <n8gray@g...>
Subject: Re: [Caml-list] Documentation request: allocation of bigarrays in C
On 4/2/06, Li-Thiao-Té Sébastien <sayan@crans.org> wrote:
> I do not know in advance the size of the multiple bigarrays to allocate.
> This is determined by parsing the file. To speed up the process, the
> file is parsed on the C side, which is why I want to do GC-friendly
> memory allocation directly from C.

Do you have evidence that the parsing would be significantly slower in
ocaml?  I'm not attacking you, I'm just curious to know if you've made
measurements.

Cheers,
-n8

--
>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->