From: Joseph McDonald Date: 2000-12-16T14:02:10+09:00 Subject: [ruby-talk:7394] Re: Ruby performance question Hi, It is faster, but I don't think it is putting anything in the hash. I know perl will convert an array to a hash, but I don't think ruby does it as a built-in. Please correct me if I'm wrong. regards, -joe > I found even another fastest version: > > def dt_readfile > h = Hash.new > file = File.new("keys") > while line = file.gets > record = line.chomp!.tr!('=', ',').split(',') > h = Hash.new(record) > # do stuff here... > h.clear > end > end > > Park, Hee-Sob