We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff1eeac commit c53c498Copy full SHA for c53c498
src/index.ts
@@ -300,7 +300,7 @@ function createQuerier() {
300
return value != undefined && value != null;
301
}
302
let subQueryCounter = 0;
303
-
+ let memoHits = 0;
304
const memo = new Map<QNode, Map<NodePath | PrimitiveValue, Result[]>>();
305
306
function resolveDirectly(node: QNode, path: NodePath) : Result[] {
@@ -337,6 +337,7 @@ function createQuerier() {
337
for (const path of paths) {
338
if (isNodePath(path)) {
339
if (memo.has(startNode) && memo.get(startNode)!.has(path)) {
340
+ memoHits++;
341
result.push(...memo.get(startNode)!.get(path)!);
342
} else {
343
const subQueryKey = "subquery-" + subQueryCounter++;
src/traverse.ts
0 commit comments