@@ -31,43 +31,22 @@ export default Route.extend({
31
31
const parent = peekedParents [ 0 ] ;
32
32
const children = await parent . children ;
33
33
34
- await logChildren ( parent ) ;
35
-
36
34
performance . mark ( 'start-local-removal' ) ;
37
- console . group ( 'start-local-removal' ) ;
38
35
const removedChildren = children . splice ( 0 , 19000 ) ;
39
- await logChildren ( parent ) ;
40
- console . groupEnd ( ) ;
41
36
42
37
performance . mark ( 'start-push-minus-one-payload' ) ;
43
- console . group ( 'start-push-minus-one-payload' ) ;
44
38
this . store . push ( payloadWithRemoval ) ;
45
- await logChildren ( parent ) ;
46
- console . groupEnd ( ) ;
47
39
48
40
performance . mark ( 'start-local-addition' ) ;
49
- console . group ( 'start-local-addition' ) ;
50
41
parent . children = children . concat ( removedChildren ) ;
51
- await logChildren ( parent ) ;
52
- console . groupEnd ( ) ;
53
42
54
43
performance . mark ( 'start-push-plus-one-payload' ) ;
55
- console . group ( 'start-push-plus-one-payload' ) ;
56
44
this . store . push ( initialPayload2 ) ;
57
- await logChildren ( parent ) ;
58
- console . groupEnd ( ) ;
59
45
60
46
performance . mark ( 'end-push-plus-one-payload' ) ;
61
47
} ,
62
48
} ) ;
63
49
64
- async function logChildren ( parent ) {
65
- const children = await parent . children ;
66
- console . log (
67
- `children is an array of length ${ children . length } of ids ${ children . at ( 0 ) . id } ..${ children . at ( children . length - 1 ) . id } `
68
- ) ;
69
- }
70
-
71
50
function iterateChild ( record , seen ) {
72
51
if ( seen . has ( record ) ) {
73
52
return ;
0 commit comments