3 ms·
arguably, it's trivial to make that stream oriented open('tmp.rb').each_line.lazy.map {...}.select {...} the problem with processing big files with ruby (
by riffraff 12y ago
arguably, it's trivial to make that stream oriented
open('tmp.rb').each_line.lazy.map {...}.select {...}
the problem with processing big files with ruby (in my humble experience) is usually that it's still slow enough that "preprocessing with grep&uniq" is worthwhile.
- barrkel 12y ago> open('tmp.rb').each_line.lazy NoMethodError: undefined method `lazy' for #<Enumerator: #<File:Procfile>:each_line> Not everybody is using Ruby 2.0.