From owner-cvs-all Mon Sep 9 3:59:16 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11DFA37B400; Mon, 9 Sep 2002 03:59:13 -0700 (PDT) Received: from shale.csir.co.za (shale.csir.co.za [146.64.46.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7D9543E3B; Mon, 9 Sep 2002 03:58:30 -0700 (PDT) (envelope-from reg@shale.csir.co.za) Received: (from reg@localhost) by shale.csir.co.za (8.11.6/8.11.6) id g89AvxZ61690; Mon, 9 Sep 2002 12:58:00 +0200 (SAT) (envelope-from reg) Date: Mon, 9 Sep 2002 12:57:59 +0200 From: Jeremy Lea To: Maxim Sobolev 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> Mail-Followup-To: Jeremy Lea , Maxim Sobolev , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org References: <200209090800.g8980W9T021683@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200209090800.g8980W9T021683@freefall.freebsd.org> User-Agent: Mutt/1.4i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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