Poor performance on EC2

,

This thread may be of interest to you.

I would try out File.stream! and doing more lines at once:

Getting fast I/O stream processing in Elixir does require some non-obvious tweaks. Due to the way I/O works on the BEAM (there’s a special process that does I/O and passes results to your process as a message), you want the messages to be as long as possible to avoid overheads.