From pe@iki.fi Sun Aug 3 17:38:39 1997 Date: Sun, 3 Aug 1997 17:38:29 +0300 (EEST) From: Pasi Eronen To: HTDig mailing list Subject: Memory usage to 2.3% of original (?!) Hi again... In my last mail, I managed to reduce htmerge's memory consumption to about half, from 34.2 MB to 17.5 MB on my system. I took a closer look at it, and it's now 0.8 MB (yes, that's 800 KB). (Did I hear someone speaking about the benefits of automatic garbage collection? :-) Ok, now the consumption is only 2.3% of the original. If someone who has had memory problems with HTDig could try these patches, I would know if it's worth going after the remaining leaks... :-) Best regards, Pasi --- Pasi Eronen , +358-50-5123499 *** htcommon/DocumentDB.cc.orig Sun Aug 3 17:32:22 1997 --- htcommon/DocumentDB.cc Sun Aug 3 17:32:34 1997 *************** *** 271,274 **** --- 271,275 ---- if (ref) list->Add(new String(ref->DocURL())); + delete ref; } }