-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize <* for sequences #314
Comments
This looks trickier than I thought! I suspect doing this well will require rather more work than |
@oisdk, I haven't been able to give this enough sustained attention to get it done. Do you think you can have a look? It has to be a sort of mash-up of things from beforeMiddle
:: c
-> c
-> (a -> c)
-> FingerTree (Elem a)
-> Int
-> Int
-> FingerTree (Node c) but that could be wrong. |
Yeah I can take a look! |
I'd expect |
We should be able to optimize
<*
for sequences to get more sharing within subtrees and go faster. Basically, we want to use<$
to make subtrees instead of<$>
.We want to maintain the incremental bounds. In particular,
(xs <* ys) `index` k
should produce a result in logarithmic time.The text was updated successfully, but these errors were encountered: