-
Notifications
You must be signed in to change notification settings - Fork 69
Use an index instead of uncons to make array functions more efficient. #71
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
Comments
Let's list out the functions which have possible issues, since I think each could have a slightly different fix.
|
I think converting to a list before doing |
Change filterM to just be filterA in order to have this be a non-breaking change. This removes another use of uncons, refs #71
Change filterM to just be filterA in order to have this be a non-breaking change. This removes another use of uncons, refs #71
Mostly a note to myself: now, it's just |
Refs #71, improves performance of groupBy.
|
how about having foldM just be a re-export? |
That sounds good to me, provided that the |
addresses purescript#71
make nubByEq more efficient, part of #71
|
The implementation of many array functions, like filterM, span, groupBy, ... uses uncons for implementation. It would be more efficient to use an index and has no known disadvantages (other then maybe some subjective aesthetic property).
If we can agree on this I can contribute code, but I don't want to work on this if it is not wanted.
The text was updated successfully, but these errors were encountered: