With the first patch xorg-gtest will use the SIGUSR1 mechanism offered by the XServer to get notified when the XServer is ready to accept connections.
Due to that we don't need to poll the XServer until it's ready and we can remove WaitForConnections(). That's what the second patch does. Round trips for basic tests went down from ~415ms to ~236ms on my slow Intel U5400@1.2GHz. That's round about 44% faster as with polling. Daniel Martin (2): xserver: use SIGUSR1 to wait for XServer startup Remove WaitForConnections() include/xorg/gtest/xorg-gtest-xserver.h | 5 --- src/environment.cpp | 1 - src/xserver.cpp | 64 ++++++++++++++++----------------- 3 files changed, 31 insertions(+), 39 deletions(-) -- 1.7.12.2 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel