diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-10-03 11:47:07 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-10-04 08:14:48 -0700 |
commit | 072fc46b2af370e78fa53426626ca3c33b74bdf2 (patch) | |
tree | 575a85d3e1451e604f81c3292102356b37019c3e /xdpyinfo.man | |
parent | 30bc4b0ada659809c64f6a8292cbde3166267e8d (diff) |
Use xcb for -queryExt instead of a round-trip per extension
On a system with 30 extensions listed by xdpyinfo, truss -c
reports this saves quite a few system calls by batching the
QueryExtension requests instead of a round-trip for each one:
Xlib xcb
writev 40 11
poll 80 22
recv 117 29
total (*) 464 296
(*) total includes all system calls, including many not shown since
their count did not change significantly. There was one additional
set of open/mmap/close etc. for loading the added libX11-xcb library.
Over a tcp connection, this reduced both the number of packets,
and due to tcp packet header overhead, the overall amount of data:
Xlib xcb
TCP packets 93 35
TCP bytes 11554 7726
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Diffstat (limited to 'xdpyinfo.man')
0 files changed, 0 insertions, 0 deletions