Skip to content

Commit d2987a2

Browse files
committed
trying to speed things up
1 parent 3da3b03 commit d2987a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

graphql/execution/executor.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,12 @@ def complete_list_value(exe_context, return_type, field_asts, info, result):
435435
item_type = return_type.of_type
436436
completed_results = []
437437
contains_promise = False
438+
438439
index = 0
440+
path = info.path[:]
439441
for item in result:
440-
new_info = info.clone()
441-
new_info.path += [index]
442-
completed_item = complete_value_catching_error(exe_context, item_type, field_asts, new_info, item)
442+
info.path = path + [index]
443+
completed_item = complete_value_catching_error(exe_context, item_type, field_asts, info, item)
443444
if not contains_promise and is_thenable(completed_item):
444445
contains_promise = True
445446

0 commit comments

Comments
 (0)