I Second That Emotion
So Tim Bray finds out that Erlang IO is slow . I can attest to this fact, as my recent work on reading large files in Erlang has shown that IO and string manipulation is much slower than I would have wanted. Yes, like Bray, my file reading is single threaded (although, what I do with the line is very multi-threaded) so I suppose using a single thread for Erlang isn't very Erlang-like in the first place. In the meantime, I'm porting my OLAP cube generator to Scala. The assumption (and shortly, hopefully proof) is that the JVM can do file IO much better than Erlang, yet I can still take advantage of Scala's Actors to retain my concurrency. Update : OK, some numbers and code. This is a benchmark for Erlang and Scala to read in a file line by line. First, the Erlang code: process_file2(Filename) -> {ok, File} = file:open(Filename, read), process_lines2(File). process_lines2(File) -> case io:get_line(File, '') of eof -> file:close(File); _ -...