doyensec / GQLSpection

GQLSpection - parses GraphQL introspection schema and generates possible queries
Apache License 2.0
66 stars 7 forks source link

Slow parsing H1 schema #32

Open execveat opened 11 months ago

execveat commented 11 months ago

It takes two minutes to parse (huge) Activity query from the H1 schema:

$ time gqlspection -q activity -f h1.json -d 1

h1.json

execveat commented 11 months ago

Well, after replacing recursive query generation with iterative version in #33 the query generation went down from 2 minutes to a couple of seconds. The depth calculation was adjusted as well, so the comparison isn't completely fair, but overall it looks like the rest of optimizations could wait for now.