Replies: 1 comment
-
The shape is not always the same. It takes optimization based on the interface implementations of input. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, using linq causes the entire iterator chain to be rebuilt each time even though the shape of it remains the same.
This could be avoided using an API like the following to cache the pipeline instance beforehand.
The lambda should be static as it only runs once to build the iterator instance.
To accommodate this, iterators could support a custom arg to be specified.
I think internally this could reuse Iterator infrastructure to represent the pipeline instance. This could accompany an
IIterator<T>
interface to support custom operators.Beta Was this translation helpful? Give feedback.
All reactions