-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Atlas Streams
-
None
-
3
-
TBD
-
None
-
None
-
None
-
None
-
None
-
None
-
None
cursor::begin() just calls into iterator::operator++() if the change stream has started [1], which means in change_stream_source_opeator.cpp code we could save a few places where we unnecessarily calls begin() or checking _it == _changeStreamCursor->end() [2]. Instead the logic could be simplified as
++_it;
if (_it != _changeStreamCursor->end())
{ \{process data}} else
{ \{idle}}