File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -43,18 +43,18 @@ This means all field instances are inherently batched as a function of the engin
4343
4444** Scenario:** we resolve five fields (_ depth_ ) across a list of 1000 objects (_ breadth_ ).
4545
46- * In depth-first execution, we call 5000 field resolvers (_ depth × breadth_ ) and incur ` 5s ` of cost.
47- * In breadth-first execution, we call 5 field resolvers (_ depth-only_ ) and incur only ` 5ms ` .
46+ * depth-first: we call 5000 field resolvers (_ depth × breadth_ ) and incur ` 5s ` of cost.
47+ * breadth-first: we call 5 field resolvers (_ depth-only_ ) and incur only ` 5ms ` .
4848
4949Now assume each field operates lazily and returns a promise:
5050
51- * In depth-first execution, we build and resolve 5000 intermediary promises (_ depth × breadth_ ).
52- * In breadth-first execution, we build and resolve 5 intermediary promises (_ depth-only_ ).
51+ * depth-first: we build and resolve 5000 intermediary promises (_ depth × breadth_ ).
52+ * breadth-first: we build and resolve 5 intermediary promises (_ depth-only_ ).
5353
5454Now assume we chain a ` .then ` onto the lazy promise resolution:
5555
56- * In depth-first execution, we build and resolve 10,000 intermediary promises (_ depth × breadth × 2_ ).
57- * In breadth-first execution, we build and resolve 10 intermediary promises (_ depth × 2_ ).
56+ * depth-first: we build and resolve 10,000 intermediary promises (_ depth × breadth × 2_ ).
57+ * breadth-first: we build and resolve 10 intermediary promises (_ depth × 2_ ).
5858
5959## Prototype usage
6060
You can’t perform that action at this time.
0 commit comments