caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* mmap() and strings
@ 2004-12-08 20:04 Julien Cristau
  2004-12-08 20:24 ` [Caml-list] " Basile STARYNKEVITCH
  0 siblings, 1 reply; 6+ messages in thread
From: Julien Cristau @ 2004-12-08 20:04 UTC (permalink / raw)
  To: caml-list; +Cc: david.baelde

Hello list,

I'm wondering if somebody has an idea for the following problem:

I'm working on a program which manipulates a buffer. A writer process 
regularly changes this buffer, and reader processes have to work on it 
after each change. Currently, the buffer is a string and is passed to 
the readers trough pipes. However, this is costly because the buffer is 
copied many times at each iteration.
We thought we could use mmap(2), but there seems to be no easy solution 
to mmap() a memory region and treat it as a string in ocaml. Does 
anybody have a better idea how we could solve this problem without 
copying the buffer?

Julien


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-12-09 10:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-08 20:04 mmap() and strings Julien Cristau
2004-12-08 20:24 ` [Caml-list] " Basile STARYNKEVITCH
2004-12-08 20:50   ` Julien Cristau
2004-12-09  1:09     ` Jacques Garrigue
2004-12-09  1:42       ` Jacques Garrigue
2004-12-09 10:32         ` David Baelde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).