-
Notifications
You must be signed in to change notification settings - Fork 328
Closed
Description
Hi,
Would you accept simple PR which would cache and reuse the generator during the same session?
Setting up the generator take few seconds, so in our case, when we use generateSchema over 100 times in test, it takes crazy long time, while with a 'hacked' solution, it took few seconds.
What I mean is doing something like this:
let generator;
function generateSchema(program, fullTypeName, args, onlyIncludeFiles) {
if (generator=== undefined) {
generator= buildGenerator(program, args, onlyIncludeFiles);
}Metadata
Metadata
Assignees
Labels
No labels