MINOR: ring: keep a few frequently used pointers in the local stack
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Mar 2024 13:46:12 +0000 (14:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 17:34:19 +0000 (17:34 +0000)
commit447189f2867936e124a173da704175904b135d42
tree6bae252f56d2aa467d5bb82a3706320694ce98a1
parentc7bd7a68e4fb253aa2f26593b0cda0710c32872b
MINOR: ring: keep a few frequently used pointers in the local stack

Code disassembly shows that ring->storage->tail and ring->queue are
accessed a lot and reloaded a lot due to aliasing. Let's just have
variables for them in the local stack. It makes the code smaller and
slightly faster.
src/ring.c