From: Robert Klemme Date: 2009-10-22T17:45:06+09:00 Subject: Re: memory leak On 10/22/2009 05:33 AM, John W Higgins wrote: > May I ask why you need threads and that level of complication? Are you > really that sensitive towards speed that it really matters if you simply > forked processes that died after 100 downloads and just started another > worker? It would seem to be easier to use a nice simple independant message > queue and just fire up workers that grab messages and download away. > > I know it's not the sexy option but what exactly are you gaining by using > threads here? Much easier to get a nice single threaded worker tuned up and > tight then what you appear to be going through here. In fact - I might argue > that you would be better with a downloader and separater parser processes > that worked independantly via messages. With DRb you can even work with those multiple processes like they were in a single process. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/