[erlang-bugs] file:read with read_ahead and binaries broken

Matthew Sackman <>
Wed Oct 28 14:04:04 CET 2009

Hi Björn-Egil,

Thanks for the reply, and good to know a solution is in the pipeline.
However, you're solution is only addressing one issue. The other issue
is why is a read issued when the position call does not move the file
handle outside of the region currently cached by the read ahead buffer?
In truth, both the seek and read libc calls can be avoided, or at the
least, the position can be delayed until some other non-(position or
read) call - eg truncate or write.


More information about the erlang-bugs mailing list