[erlang-questions] Erlang read file benchmark

Martin Dimitrov mrtndimitrov@REDACTED
Sun Jul 10 08:01:41 CEST 2011


> If you read the source code you'll see that file:read_file/1 calls
> into io:request/2 which eventually (in another process) ends up in
> file_io_server:io_request/2 and ends up reading either 128 bytes or
> 8kb at a time, doing some unicode junk, and ends up calling
> io_lib:collect_line/4 to collect each line chunk at a time.
>
 Isn't Perl interpreter going over the same or similar steps?



More information about the erlang-questions mailing list