Improve data searche by starting from other end
@tim.schoof @marc-olivier.andrez
Receiver data cache is a circular buffer implemented with deque
. New data are added from one end while old data are removed from the other end. Usually in pipeline consumers (if they are not too slow) ask for the most resent data. Therefore it would make sense to start search from the most resent data. This would increase a performance, at least with the current version of the stress_test.
More proper solution is to implement something faster than linear search. This could be done later.