[Xcb] [Bug 26405] New: Performance improvements in read_block()

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 3 01:46:14 PST 2010


http://bugs.freedesktop.org/show_bug.cgi?id=26405

           Summary: Performance improvements in read_block()
           Product: XCB
           Version: 1.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: Library
        AssignedTo: xcb at lists.freedesktop.org
        ReportedBy: markus.fleschutz at x-software.com
         QAContact: xcb at lists.freedesktop.org


in libxcb-1.5/src/xcb_in.c: read_block() should read: (replace the new ELSE by
else)

...
        if(ret > 0)
            done += ret;
        ELSE if(ret < 0 && errno == EAGAIN)
        {
...
        }
        ELSE if(ret <= 0)
             return ret;
...

This saves 2 if() on partial read.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the Xcb mailing list