Date: Mon, 9 Sep 2002 12:57:59 +0200 From: Jeremy Lea <reg@FreeBSD.org> To: Maxim Sobolev <sobomax@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/pkg_install/version perform.c version.h Message-ID: <20020909105759.GA61587@shale.csir.co.za> In-Reply-To: <200209090800.g8980W9T021683@freefall.freebsd.org> References: <200209090800.g8980W9T021683@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Mon, Sep 09, 2002 at 01:00:32AM -0700, Maxim Sobolev wrote: > sobomax 2002/09/09 01:00:32 PDT > > Modified files: > usr.sbin/pkg_install/version perform.c version.h > Log: > Vastly decrease amount of memory comsumed in the case when we have to read > ports/INDEX, by allocating eactly amount of memory necessary for storing > each particular entry, insdead of 4K per entry (more than 7000 entries - > go figure). Memory consumption went down to some 500K from some 30M. Thanks. I didn't even really look at the memory consumption when the index was loaded. The change on line 68 looks a little funky though? -Jeremy -- FreeBSD - Because the best things in life are free... http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020909105759.GA61587>