Edit:
I've done some research on this and it looks like a classical backpressure case to me. The zip operator's buffer keeps growing as the rotatingCounter is repeated over and over.
I found this thread over at SO where somebody created an own operator for this but it doesn't look that elegant and the massive overhead is IMHO not proportional to the simple function of the example above. If anybody got an idea how to solve this in an elegant way using RxCpp, I will be thankful for a proposal.
The code shown below generates a memory leak. Any ideas what might be wrong here?
Edit: I've done some research on this and it looks like a classical backpressure case to me. The zip operator's buffer keeps growing as the rotatingCounter is repeated over and over. I found this thread over at SO where somebody created an own operator for this but it doesn't look that elegant and the massive overhead is IMHO not proportional to the simple function of the example above. If anybody got an idea how to solve this in an elegant way using RxCpp, I will be thankful for a proposal.