From: "Bryan R Harris" <[EMAIL PROTECTED]> > So about how many keys do you have to have before you start > questioning whether you should be using a hash? Is 15,000 keys too > many? > > I've got lots of data files with 15000+ x,y,z values. The x,y values > are the same, but the z's are different between the files. I want to > output only data points where ALL the z's in all files for a given x,y > are greater than 0. Should I load the x,y values as hash keys, and > the max z values as the "value"? I'm a little vague on how to > proceed...
Depends on the x and y. How big are the ranges? How many Xes and Ys are going to be missing in the range? But generaly speaking .. yes this looks like a good candidate for hash. Plus if you find out that the script eats too much memory you may add use DB_File; tie %the_hash, 'DB_File', some, params, I, do, not, remember; and keep the hash on disk. Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]