I incorporated a mixture of these suggestions into my own data 
construct, and it completes the task in a couple of seconds now rather 
than in minutes. I'll have to see if there's anywhere else I could use 
this kind of approach. Thanks for the help :)

-- 
Posted via http://www.ruby-forum.com/.