From owner-cvs-all Mon Sep 9 1: 0:42 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 03A0F37B400; Mon, 9 Sep 2002 01:00:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D965A43E42; Mon, 9 Sep 2002 01:00:33 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Received: from freefall.freebsd.org (sobomax@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8980WJU021684; Mon, 9 Sep 2002 01:00:32 -0700 (PDT) (envelope-from sobomax@freefall.freebsd.org) Received: (from sobomax@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8980W9T021683; Mon, 9 Sep 2002 01:00:32 -0700 (PDT) Message-Id: <200209090800.g8980W9T021683@freefall.freebsd.org> From: Maxim Sobolev Date: Mon, 9 Sep 2002 01:00:32 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/pkg_install/version perform.c version.h X-FreeBSD-CVS-Branch: HEAD 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 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. Revision Changes Path 1.3 +9 -2 src/usr.sbin/pkg_install/version/perform.c 1.2 +2 -2 src/usr.sbin/pkg_install/version/version.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message