From owner-freebsd-questions Mon Nov 15 15:35:12 1999 Delivered-To: freebsd-questions@freebsd.org Received: from misha.cisco.com (misha.cisco.com [171.69.206.50]) by hub.freebsd.org (Postfix) with ESMTP id 96E0F15143 for ; Mon, 15 Nov 1999 15:35:10 -0800 (PST) (envelope-from mi@misha.cisco.com) Received: (from mi@localhost) by misha.cisco.com (8.9.3/8.9.1) id SAA31130; Mon, 15 Nov 1999 18:35:09 -0500 (EST) (envelope-from mi) Message-Id: <199911152335.SAA31130@misha.cisco.com> Subject: -lmd's MD5File() To: questions@freebsd.org Date: Mon, 15 Nov 1999 18:35:08 -0500 (EST) Cc: phk@login.dknet.dk Reply-To: mi@aldan.algebra.com From: Mikhail Teterin X-Mailer: ELM [version 2.4ME+ PL60 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Why does not the function in subject use mmap? In my tests, using mmap instead of reading the file block at a time gave 17-26% performance improvement: The new method: 135735 microseconds per iteration The old method: 164525 microseconds per iteration The new method: 387283 microseconds per iteration The old method: 529743 microseconds per iteration Should I submit patches, or is there a good reason? Thanks! -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message