Factor padding out of _xcb_out_write_block and into its callers, XCBSendRequest and...
authorJamey Sharp <jamey@minilop.net>
Fri, 24 Feb 2006 06:41:59 +0000 (22:41 -0800)
committerJamey Sharp <jamey@minilop.net>
Fri, 24 Feb 2006 06:41:59 +0000 (22:41 -0800)
commit7f0bc778c88ab2f565cc05d5d3d5ee4c8d1388a1
tree2c3a43f6dfa41d0bedde3fb0511e9a2455858d50
parent6e29e5f2ee2e6158f1a9480a83e4f906ab9c04d1
Factor padding out of _xcb_out_write_block and into its callers, XCBSendRequest and write_setup.
This requires dynamically allocating memory in XCBSendRequest, but this
malloc/free pair turns out to cause a 30% speed hit for the 'x11perf -noop'
test -- so for the moment I use alloca where available and fall back to malloc
on other platforms. Later I think I'll change the contract of XCBSendRequest
so the caller is responsible for memory allocation, because the caller ought
to always be able to stack-allocate here.
configure.ac
src/xcb_conn.c
src/xcb_out.c