Quantcast
Channel: bufferedsource
Viewing all articles
Browse latest Browse all 4

Five good ways (and two bad ways) to read large text files with Scala

0
0

Five good ways (and two bad ways) to read large text files with Scala

I’m working on a small project to parse large Apache access log files, with the file this week weighing in at 9.2 GB and 33,444,922 lines. So I gave myself 90 minutes to try a few different ways to write a simple “line count” program in Scala. (Not my final goal, but something I could use to measure file-reading speed without applying my algorithm.)


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images