GraphQLSwift / GraphQL

The Swift GraphQL implementation for macOS and Linux
MIT License
938 stars 72 forks source link

Fix performance of readString #44

Closed Igor-Palaguta closed 5 years ago

Igor-Palaguta commented 5 years ago

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 commented 5 years ago

Thank you!