From: Robert Klemme Date: 2009-09-18T15:30:38+09:00 Subject: Re: repeatedly open file or save entire file to memory? 2009/9/17 Axel Etzold : > Jason, >> > I want to make sure I do what is most efficient when dealing with >> > multiple and potentially large files. > > you can use ruby-prof for profiling of your code. It's available as > a gem. I consider Jason's question as a design level question. That's nothing where a profiler can really help. Of course you can code up alternatives and measure performance. But it can only tell you which version of several is fastest - it cannot tell you how you should change your design to improve it. In this case performance bottlenecks are rather in the area of disk IO and all a profiler can tell you is how much of your time you spend in IO - but not how to minimize that. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/