Closed apocalyptech closed 6 years ago
You’re absolutely right! In fact this almost seems like something LeafReader could do internally for developer friendliness and avoiding subtle bugs, but I would think about that for a bit. I’ve got a busy morning so I’ll merge this later. Thanks for this!
Bah, apologies for the noise here - I realized I was being stupid about the
tell
/seek
thing. It doesn't matter thatLeafReader
can't deal with moving the file position around, because we can just operate on the base stream itself. So this brings it back to just doing a directyield
without any temp lists.