From: Brian Candler Date: 2011-02-24T18:02:07+09:00 Subject: Re: Fast alternatives to "File" and "IO" for large numbers of files ? If you read in all the data files and build a single Ruby data structure which contains all the data you're interested in, you can dump it out like this: File.open("foo.msh","wb") { |f| Marshal.dump(myobj, f) } And you can reload it in another program like this: myobj = File.open("foo.msh","rb") { |f| Marshal.load(f) } This is *very* fast. -- Posted via http://www.ruby-forum.com/.