DEV Community

Discussion on: A Little Story About the 'no' Command

Collapse
 
mattn profile image
Yasuhiro Matsumoto

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.

Collapse
 
tokoyax profile image
Takuya Aoki

I didn't know that IO.puts takes such a cost. I'll try to use buffer with Elixir. Thanks for your advice!!