summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qoffscreensurface.h
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2014-11-28 10:58:49 +0200
committerAlex Trotsenko <alex1973tr@gmail.com>2014-12-02 20:05:58 +0100
commite06f4c2558aaf99bd4ee0e13e9372c29418c5697 (patch)
tree03b28ee8cb5c7668a8c17e036c1593e57ee2d4fe /src/gui/kernel/qoffscreensurface.h
parentbb4625f472840ba9971f2bb7736cd027f52f422e (diff)
QRingBuffer: cache the last released block
A typical ring buffer usage is a sequence of reserve()->chop()->read() cycles. Usually, between these cycles, the buffer doesn't contain data and all blocks are released. To reduce reallocations, keep the most recently used block while the buffer is empty. Change-Id: I8128f1f04649ae005fd0a480f17f95de01a9a135 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qoffscreensurface.h')
0 files changed, 0 insertions, 0 deletions