Skip to content

Changes Array to List for better performance #29

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

Closed
wants to merge 1 commit into from

Conversation

jqyu
Copy link

@jqyu jqyu commented Apr 3, 2016

So I'm working on translating some GraphQL stuff into purescript. Performance is pretty critical here, and I'd rather be using the standard library than rolling my own parser), so I thought I'd knock out this optimization for large string literals.

The List.toUnfoldable call is still O(n), but linear overhead sure beats O(n^2)

@paf31
Copy link
Contributor

paf31 commented Apr 3, 2016

👍 Looks good, thanks! I'll merge this as part of the update to use the 1.0 core libraries.

@garyb garyb mentioned this pull request Jun 10, 2016
@garyb garyb closed this in #32 Jun 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants