[erlang-questions] mmap(2) to a binary?
Fri Sep 28 02:39:22 CEST 2007
In reference to the ongoing thread here and in the blogosphere,
I had an idea for doing some arbitrary file I/O in convenient
fashion. What if you could call mmap() on a file and get a binary
out of it that points directly to the mapped space?
would someone more familiar with the internals of the beam machine
tell me if that's possible or not? I don't know if you'd have to
hold open some sort of port that kept it alive and kill it when
it died, or if it's completely impossible, but it seems like a
really efficient way to sidestep the drama of read(2) and friends.
More information about the erlang-questions