On Wed, Dec 03, 2003 at 05:07:25PM -0800, Justin Mason wrote: > I think the implementation of "each" in DB_File must be inefficient, > creating an in-memory list. It might be a good idea to check out > DB_File's built-in iterator methods, now that we only support that > db module. Haven't checked though...
Actually, I've been meaning to open a bug about that. I thought I used each, but it turns out I used foreach, which is inefficient since it has to get a list of all the tokens first. Boo! If each() turns out to be nasty, we can certainly look into the built-in methods, but each() should do the right thing(tm). -- Randomly Generated Tagline: : Why Bible quotes exclusively? What happened to the Eastern religions? I'm still working on the Unicode mods. -- Larry Wall in <[EMAIL PROTECTED]>
pgp00000.pgp
Description: PGP signature