window: Use a persistent, big shm pool during resize
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 3 Apr 2012 16:00:48 +0000 (12:00 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 3 Apr 2012 16:00:48 +0000 (12:00 -0400)
commit1103a1a484999dc0d53eb6a42bc62f461a0a582d
treed9ae62ccd7dc2a21d2a1f64ca242744308696c33
parent8f64ed0381fef90e82de696a01ba467a2dd3677a
window: Use a persistent, big shm pool during resize

The biggest performance bottleneck while resizing is the continous
setting up and tearing down of mmaps and faulting in pages.  This commit
introduces a per-window pool that we'll allocate buffers out of if it's
available.  Then we set initialize it to a big shm pool when we start
resizing and free it when resizing is done.
clients/window.c