Skip to content

Fix performance of readString #44

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

Merged

Conversation

Igor-Palaguta
Copy link
Contributor

Thank you for library!

We are using it for mutating and we can pass long strings like 60k. And it works very slow as indexing over swift strings is not constant time operation. So had to switch to indexes not to subscript from start every time

e.g. for 60k before changes 5 minutes, and after changes 0.013 sec

@paulofaria paulofaria merged commit ce90650 into GraphQLSwift:master Jan 18, 2019
@paulofaria
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants