[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#353168: marked as done (X slowness patch)



Your message dated Mon, 14 Aug 2006 13:14:04 +0200
with message-id <20060814111404.GA28061@linuxfr.org>
and subject line X slowness patch
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: xserver-xorg
Version: 6.9.0.dfsg.1-4
Tags: patch

-- 
dann frazier <dannf@hp.com>
--- Begin Message ---
   Read the ROM in big chunks rather than byte-at-a-time.  This reduces
X startup time by 21 seconds for me.

	Alex

-- 
Alex Williamson                             HP Linux & Open Source Lab
--- xc/programs/Xserver/hw/xfree86/os-support/bus/linuxPci.c.orig	2005-12-21 18:53:54.000000000 -0700
+++ xc/programs/Xserver/hw/xfree86/os-support/bus/linuxPci.c	2005-12-21 19:01:28.000000000 -0700
@@ -791,8 +791,10 @@
 	write(fd, "1", 2);
 	lseek(fd, 0, SEEK_SET);
 
+	len = min(Len, st.st_size);
+
         /* copy the ROM until we hit Len, EOF or read error */
-        for (i = 0; i < Len && read(fd, Buf, 1) > 0; Buf++, i++)
+        for (; len && (size = read(fd, Buf, len)) > 0 ; Buf+=size, len-=size)
             ;
 
 	write(fd, "0", 2);

--- End Message ---

--- End Message ---
--- Begin Message ---
The version from experimental has been uploaded into unstable,
closing this bug now.
Thanks for your report.

Denis

--- End Message ---

Reply to: