Ruby HowTo: Working efficiently with large files in Ruby How to process large files in Ruby while keeping CPU and memory usage in control?