Skip to content
Snippets Groups Projects
Commit 4842c090 authored by Serge Petrenko's avatar Serge Petrenko Committed by Kirill Yukhin
Browse files

wal: change WAL_ROWS_PER_YIELD to a power of 2

row_count % WAL_ROWS_PER_YIELD == 0 is tested by both local recovery and relay
on each recovered row, so it makes sense to have this constant a power of two,
so that the compiler could replace '%' with bitwise and.

WAL_ROWS_PER_YIELD used to be 32000, so change it to the closest power
of two: 32768 == 2 ^ 15.

Follow-up #5762
parent 30ad4a55
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment