Ariel Shaqed (Scolnicov)
01/21/2022, 7:34 AMNextRange
(and even SeekGE
)? Basically, have another channel from the wrapping iterator to the base iterator. Every time the wrapping iterator needs to change location, it drops the old channel (@Barak Amar do we need to drain a channel, or can it just be garbage-collected while full?), creates a new channel in its stead, and sends a command <"NextRange", ptrToNewChannel>
to the base iterator. The base iterator now select
s on being able to write on its output or read from its input; if it gets a command on the input channel it can implement it.
Not perfect, but a cheap way to prefetch.Ariel Shaqed (Scolnicov)
01/21/2022, 7:53 AMBarak Amar
Barak Amar
Barak Amar
Ariel Shaqed (Scolnicov)
01/21/2022, 10:10 AMBarak Amar