aboutsummaryrefslogtreecommitdiffstats
path: root/client/pool-buffer.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-29 08:29:11 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-29 08:29:11 +1000
commitb12f7be9071f085894b47950cc0e1fda2187d7e5 (patch)
treec2d50ea44c1857ec0c0132d9e73f7c32ab7fb91e /client/pool-buffer.c
parentMerge pull request #2526 from ianyfan/commands (diff)
downloadsway-b12f7be9071f085894b47950cc0e1fda2187d7e5.tar.gz
sway-b12f7be9071f085894b47950cc0e1fda2187d7e5.tar.zst
sway-b12f7be9071f085894b47950cc0e1fda2187d7e5.zip
Don't use bitfield to test for similar transactions
When there's multiple transactions in the queue, sway can take a shortcut by checking if they all operate on the same set of containers. If they do, it can skip all but the last transaction. The way we tested for transactions which used the same containers was to exclusive-or their con IDs together, but this has proved not only to be ineffective but also has the potential to make sway crash. This patch replaces the exclusive-or with a loop and container comparison.
Diffstat (limited to 'client/pool-buffer.c')
0 files changed, 0 insertions, 0 deletions