cuelang.org/go@v0.10.1/cue/testdata/benchmarks/inlinedisjunction.txtar (about) 1 -- in.cue -- 2 #def: { 3 {} | {c: string} 4 {} | {c: string} 5 {} | {c: string} 6 {} | {c: string} 7 {} | {c: string} 8 {} | {c: string} 9 {} | {c: string} 10 {} | {c: string} 11 {} | {c: string} 12 {} | {a: string} 13 } 14 x: #def 15 x: c: "foo" 16 -- out/evalalpha/stats -- 17 Leaks: 147 18 Freed: 2 19 Reused: 2 20 Allocs: 147 21 Retain: 0 22 23 Unifications: 17 24 Conjuncts: 198 25 Disjuncts: 76 26 -- out/eval -- 27 (struct){ 28 #def: (#struct){ |((#struct){ 29 }, (#struct){ 30 a: (string){ string } 31 }, (#struct){ 32 c: (string){ string } 33 }, (#struct){ 34 c: (string){ string } 35 a: (string){ string } 36 }) } 37 x: (#struct){ |((#struct){ 38 c: (string){ "foo" } 39 }, (#struct){ 40 c: (string){ "foo" } 41 a: (string){ string } 42 }) } 43 } 44 -- diff/-out/evalalpha/stats<==>+out/eval/stats -- 45 diff old new 46 --- old 47 +++ new 48 @@ -1,9 +1,9 @@ 49 -Leaks: 0 50 -Freed: 4674 51 -Reused: 3903 52 -Allocs: 771 53 +Leaks: 147 54 +Freed: 2 55 +Reused: 2 56 +Allocs: 147 57 Retain: 0 58 59 -Unifications: 2590 60 -Conjuncts: 13409 61 -Disjuncts: 4674 62 +Unifications: 17 63 +Conjuncts: 198 64 +Disjuncts: 76 65 -- out/eval/stats -- 66 Leaks: 0 67 Freed: 4674 68 Reused: 3903 69 Allocs: 771 70 Retain: 0 71 72 Unifications: 2590 73 Conjuncts: 13409 74 Disjuncts: 4674 75 -- out/compile -- 76 --- in.cue 77 { 78 #def: { 79 ({}|{ 80 c: string 81 }) 82 ({}|{ 83 c: string 84 }) 85 ({}|{ 86 c: string 87 }) 88 ({}|{ 89 c: string 90 }) 91 ({}|{ 92 c: string 93 }) 94 ({}|{ 95 c: string 96 }) 97 ({}|{ 98 c: string 99 }) 100 ({}|{ 101 c: string 102 }) 103 ({}|{ 104 c: string 105 }) 106 ({}|{ 107 a: string 108 }) 109 } 110 x: 〈0;#def〉 111 x: { 112 c: "foo" 113 } 114 }