github.com/solo-io/cue@v0.4.7/cue/testdata/benchmarks/disjunction.txtar (about)

     1  // Triggering recomputation of disjunctions on each branch results
     2  // in exponential run time. Ensure this does not happen.
     3  
     4  -- in.cue --
     5  x: a0: {}
     6  x: [_]: f: *1 | int
     7  x: [_]: f: *1 | int
     8  x: [_]: f: *1 | int
     9  x: [_]: f: *1 | int
    10  x: [_]: f: *1 | int
    11  x: [_]: f: *1 | int
    12  x: [_]: f: *1 | int
    13  x: [_]: f: *1 | int
    14  x: [_]: f: *1 | int
    15  x: [_]: f: *1 | int
    16  x: [_]: f: *1 | int
    17  x: [_]: f: *1 | int
    18  x: [_]: f: *1 | int
    19  x: [_]: f: *1 | int
    20  x: [_]: f: *1 | int
    21  x: [_]: f: *1 | int
    22  x: [_]: f: *1 | int
    23  x: [_]: f: *1 | int
    24  x: [_]: f: *1 | int
    25  x: [_]: f: *1 | int
    26  
    27  
    28  x: a0: {}
    29  -- out/compile --
    30  --- in.cue
    31  {
    32    x: {
    33      a0: {}
    34    }
    35    x: {
    36      [_]: {
    37        f: (*1|int)
    38      }
    39    }
    40    x: {
    41      [_]: {
    42        f: (*1|int)
    43      }
    44    }
    45    x: {
    46      [_]: {
    47        f: (*1|int)
    48      }
    49    }
    50    x: {
    51      [_]: {
    52        f: (*1|int)
    53      }
    54    }
    55    x: {
    56      [_]: {
    57        f: (*1|int)
    58      }
    59    }
    60    x: {
    61      [_]: {
    62        f: (*1|int)
    63      }
    64    }
    65    x: {
    66      [_]: {
    67        f: (*1|int)
    68      }
    69    }
    70    x: {
    71      [_]: {
    72        f: (*1|int)
    73      }
    74    }
    75    x: {
    76      [_]: {
    77        f: (*1|int)
    78      }
    79    }
    80    x: {
    81      [_]: {
    82        f: (*1|int)
    83      }
    84    }
    85    x: {
    86      [_]: {
    87        f: (*1|int)
    88      }
    89    }
    90    x: {
    91      [_]: {
    92        f: (*1|int)
    93      }
    94    }
    95    x: {
    96      [_]: {
    97        f: (*1|int)
    98      }
    99    }
   100    x: {
   101      [_]: {
   102        f: (*1|int)
   103      }
   104    }
   105    x: {
   106      [_]: {
   107        f: (*1|int)
   108      }
   109    }
   110    x: {
   111      [_]: {
   112        f: (*1|int)
   113      }
   114    }
   115    x: {
   116      [_]: {
   117        f: (*1|int)
   118      }
   119    }
   120    x: {
   121      [_]: {
   122        f: (*1|int)
   123      }
   124    }
   125    x: {
   126      [_]: {
   127        f: (*1|int)
   128      }
   129    }
   130    x: {
   131      [_]: {
   132        f: (*1|int)
   133      }
   134    }
   135    x: {
   136      a0: {}
   137    }
   138  }
   139  -- out/eval --
   140  (struct){
   141    x: (struct){
   142      a0: (struct){
   143        f: (int){ |(*(int){ 1 }, (int){ int }) }
   144      }
   145    }
   146  }