From owner-cvs-ports@FreeBSD.ORG Fri Mar 9 08:05:08 2007 Return-Path: X-Original-To: cvs-ports@FreeBSD.org Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CCF3D16A403; Fri, 9 Mar 2007 08:05:08 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id B812A13C48D; Fri, 9 Mar 2007 08:05:08 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l298585T057000; Fri, 9 Mar 2007 08:05:08 GMT (envelope-from mi@repoman.freebsd.org) Received: (from mi@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l29858R7056999; Fri, 9 Mar 2007 08:05:08 GMT (envelope-from mi) Message-Id: <200703090805.l29858R7056999@repoman.freebsd.org> From: Mikhail Teterin Date: Fri, 9 Mar 2007 08:05:08 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/mail/mboxgrep Makefile ports/mail/mboxgrep/files patch-md5 patch-noredundancy X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 08:05:08 -0000 mi 2007-03-09 08:05:08 UTC FreeBSD ports repository Modified files: mail/mboxgrep Makefile Added files: mail/mboxgrep/files patch-md5 patch-noredundancy Log: Don't use the bundled md5.c and getopt1.c in favor of OpenSSL and USE_GETOPT_LONG respectively. This reduces the executable's size considerably. (More ports should be doing this.) When comparing md5 checksums (used to detect duplicates in the input), treat each as a pair of 8-byte integers instead of calling strncmp, which was just plain buggy. Memcmp should've been used instead, but two integer comparisions are even faster. Re-work the resizable array of checksums removing a separate malloc call for each md5 checksum. This reduces the runtime memory consumption considerably. (Tried using a hashtable instead of linearly searching through the array, but did not see a speed-gain even over a large collection of messages.) Vendor notified, but has not responded (the software's last release is several years old). Bump PORTREVISION. Approved by: maintainer Revision Changes Path 1.12 +3 -0 ports/mail/mboxgrep/Makefile 1.1 +160 -0 ports/mail/mboxgrep/files/patch-md5 (new) 1.1 +16 -0 ports/mail/mboxgrep/files/patch-noredundancy (new)