This strategically optimizes parse and print, since we wouldn't want these two to get any slower than graphql.js' implementations. We've previously struggled to optimize what was in graphql-web-lite, but the new implementations make this a little easier.
Set of changes
Optimize hot path for ignored() characters
Remove redundant ignored() calls in field() and fragmentSpread()
Split up print() into separate monomorphic functions
Summary
This strategically optimizes
parse
andprint
, since we wouldn't want these two to get any slower thangraphql.js
' implementations. We've previously struggled to optimize what was ingraphql-web-lite
, but the new implementations make this a little easier.Set of changes
ignored()
charactersignored()
calls infield()
andfragmentSpread()
print()
into separate monomorphic functions