From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 22 Mar 2004 22:31:12 +0000 Subject: Re: [PATCH] replace fgets() with mmap() and introduce udev_lib.[hc] Message-Id: <20040322223112.GA10004@kroah.com> List-Id: References: <20040317215447.GA10296@vrfy.org> In-Reply-To: <20040317215447.GA10296@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Mar 17, 2004 at 10:54:47PM +0100, Kay Sievers wrote: > Here we replace the various fgets() with a mmap() call for the config > file reading, due to the reported performance problems with klibc. > > Thanks to Patrick's testing, it makes a very small, close to nothing > speed gain for libc users, but a 6 times speed increase for klibc users > with a 1000 line config file. > > I've created a udev_lib.[hc] for this and also moved all the generic > stuff from udev.h in there and uninlined the functions. Very nice. I also fixed udevtest so that it will build properly with this change. Applied. thanks, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel