From owner-freebsd-hackers Wed Apr 2 11:50:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id LAA19477 for hackers-outgoing; Wed, 2 Apr 1997 11:50:42 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id LAA19470 for ; Wed, 2 Apr 1997 11:50:36 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id VAA10646; Wed, 2 Apr 1997 21:50:35 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id VAA24750; Wed, 2 Apr 1997 21:24:43 +0200 (MET DST) Message-ID: <19970402212443.OT00003@uriah.heep.sax.de> Date: Wed, 2 Apr 1997 21:24:43 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@freebsd.org Cc: keith4@ilink.nis.za (keith waters), taob@nbc.netcom.ca (Brian Tao) Subject: Re: Unreasonable rebuild time on large password files References: <199704020913.LAA03056@ilink.nis.za> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from Brian Tao on Apr 2, 1997 10:54:47 -0500 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Brian Tao wrote: > > This must be one of the worst cases of code/resourse optimisation, > > since changing a password means rebuilding EVERY SINGLE entry in the > > password databases. > > We await your optimized code diffs to pwd_mkdb(8) then. :) No need. It's already there. Guido once implemented incremental updates to the password database if only a single user's entry has been changed. They seem to be non-optional (much to my surprise :), and the default in FreeBSD 2.2 and above. Nobody thought of this change when assembling the release notes for 2.2, not even the author. ;-) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)