CLEANUP: ring: use only curr_cell and not next_cell in the main write loop
authorWilly Tarreau <w@1wt.eu>
Sun, 17 Mar 2024 15:54:36 +0000 (16:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 17:34:19 +0000 (17:34 +0000)
commit4bc81ec9857a3b427caba65353fd3816c1d0d651
treed739b1da8502f143ac7dbf18281d1eb7b7eb5f38
parent0a0a64ef029d026c7d818c497786bdf79089d58d
CLEANUP: ring: use only curr_cell and not next_cell in the main write loop

It turns out that we can reduce by one variable in the loop and this
clobbers one less register, making it slightly faster on Cortex A72.
src/ring.c