Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KLVlH-0007Y5-Vh for mharc-grub-devel@gnu.org; Wed, 23 Jul 2008 00:15:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLVlF-0007Y0-OH for grub-devel@gnu.org; Wed, 23 Jul 2008 00:15:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLVlD-0007Xo-Bd for grub-devel@gnu.org; Wed, 23 Jul 2008 00:15:32 -0400 Received: from [199.232.76.173] (port=33768 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLVlD-0007Xl-5n for grub-devel@gnu.org; Wed, 23 Jul 2008 00:15:31 -0400 Received: from gateway12.websitewelcome.com ([67.18.22.86]:58920) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KLVlC-0003tC-JP for grub-devel@gnu.org; Wed, 23 Jul 2008 00:15:30 -0400 Received: (qmail 17617 invoked from network); 23 Jul 2008 04:20:55 -0000 Received: from gator297.hostgator.com (74.53.228.114) by gateway12.websitewelcome.com with SMTP; 23 Jul 2008 04:20:55 -0000 Received: from c-67-185-142-228.hsd1.wa.comcast.net ([67.185.142.228]:41122 helo=localhost) by gator297.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1KLVl7-0004N2-Ts; Tue, 22 Jul 2008 23:15:26 -0500 Date: Tue, 22 Jul 2008 21:14:50 -0700 From: Colin D Bennett To: The development of GRUB 2 Message-ID: <20080722211450.3d330ac1@gibibit.com> In-Reply-To: <1216763094.5601.1.camel@dv> References: <20080722084347.53863920@gibibit.com> <1216752511.5029.4.camel@dv> <20080722120632.7aa611ce@gibibit.com> <1216763094.5601.1.camel@dv> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/fefnBm=NZ81uYCdzqeWr8YB"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Cc: proski@gnu.org Subject: Re: [PATCH] File readahead buffering X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2008 04:15:34 -0000 --Sig_/fefnBm=NZ81uYCdzqeWr8YB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 22 Jul 2008 17:44:53 -0400 Pavel Roskin wrote: > On Tue, 2008-07-22 at 12:06 -0700, Colin D Bennett wrote: >=20 > > I agree that TGA is not, in general, a great choice for an image > > format (unless it is faster to load a large background image -- a > > 1024x768 RGB PNG file may take more time to decompress than a TGA > > image would take to load -- although perhaps an uncompressed PNG > > file would be comparable in speed to load). However, I have not > > been able to load any PNG images that I have tried to use. > > Something about the chunk type not being supported. >=20 > Strange. It's working for me. You may want to post that file to the > list. Actually I'm testing it now, and PNG images are working... I'll post an update when I have finished testing. Maybe the failures I experienced in the past were due to an old version of GRUB. =20 > > If the buffering is not done in the file I/O layer, then the font > > loading, theme file loading, image file loading, etc. will all need > > to do their own buffering, which IMHO is more error prone and makes > > those modules use more code to handle low level I/O stuff, which > > detracts from their specific purpose. > >=20 > > Also, this is no small increase in speed, but from 10x to 100x > > increase in performance for some cases where small sequential reads > > are performed. >=20 > OK, then you may have a case. FWIW, here are some results of timing the loading of the same 1024x768 image in TGA, PNG, and JPEG formats -- first without the file buffering patch, and then with the file buffering patch: (Loading times in seconds.) TGA PNG 0 PNG 100 JPEG q80 JPEG q100 ----- ----- ------- -------- --------- No buffering 17 9 12 1 7=20 Buffering 1 1 1 1 1 I see that PNG files load at least as fast as TGA files, so that is great news. It also seems to show the degree of benefit provided by using buffered file reads. These tests were done by using the 'tgatest', 'pngtest', and 'jpegtest' commands, and manually timing the results (accuracy +/- one second or so). Regards, Colin --Sig_/fefnBm=NZ81uYCdzqeWr8YB Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkiGsDwACgkQokx8fzcGbYcp1wCcCyuynTU+hEq3T4bvwBsR2qwE txQAmwSW1hOntYIf4joaEhl9bcFsr6S2 =BEaz -----END PGP SIGNATURE----- --Sig_/fefnBm=NZ81uYCdzqeWr8YB--