-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(core): Implement caching of GraphqlValueTransformer type trees
Relates to #226. The `getOutputTypeTree()` and `getOutputTypeTree()` methods have to walk potentially deeply-nested objects to construct the type trees. This change uses a WeakMap to cache the results against a given input. Benchmarks show modest speed improvements.
- Loading branch information
1 parent
3c33f33
commit ffe47b1
Showing
2 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters