Bad performance of eachline() on STDIN

As @ToucheSir pointed out, there is a similar issue in a related thread: