While doing XDCR performance testing/optimization iterations, we find that calling len() in repeated ops could be quite expensive over time. Step() is one of the bigger offenders in CPU profile, and this change should remove a lot of len() calls that aren't really necessary.
Running local benchmark test shows improvements across the board:
While doing XDCR performance testing/optimization iterations, we find that calling len() in repeated ops could be quite expensive over time. Step() is one of the bigger offenders in CPU profile, and this change should remove a lot of len() calls that aren't really necessary.
Running local benchmark test shows improvements across the board:
Master:
With len() calls removed: