Sorry if you know why this slow, calling IO.puts every times make performance wrong. system call block until finish of I/O. I'm not good at Elixir, but you've better to use buffer for writing. Actually, yes command does not call write(2) for each lines.
Sorry if you know why this slow, calling
IO.putsevery times make performance wrong. system call block until finish of I/O. I'm not good at Elixir, but you've better to use buffer for writing. Actually, yes command does not call write(2) for each lines.I didn't know that
IO.putstakes such a cost. I'll try to use buffer with Elixir. Thanks for your advice!!