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
mmap() and strings
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-12-09 (10:37)
From: David Baelde <david.baelde@e...>
Subject: Re: [Caml-list] mmap() and strings

Hello and thank you for this precise (and impressive) answer,
(I'm working together with Julien)

But actually, we need also to get a bigarray from string. So the writer 
could get a string as usual, copy it once in a shared bigarray, and then 
let the readers read it, without any more copies.

Anyway, I'm also quite afraid of including suck black magic in our 
project ;) We're OK for writing some C, we already did. Maybe it would 
be easier than Obj.Magic stuff.

Avoiding copies is our goal, but it seems impossible to get a string of 
which Caml doesn't own the blocks, in order to make a mmaped mem area 
corresponding to many strings in the writer/readers processes.