mirror of
https://github.com/google/go-jsonnet.git
synced 2025-08-08 07:17:12 +02:00
Keep object locals only once in AST For example this reduces the size of stdlib ast file roughly 3x. Note that this change doesn't regenerate the stdlib, so that the diff here is sane. It is likely to slightly improve performance of code using a lot of locals (~10% on bench.05.gen.jsonnet). The desugaring is more strightforward now, and we're back to desugaring each node exactly once.
23 lines
206 B
Plaintext
23 lines
206 B
Plaintext
{
|
|
"field": [
|
|
[
|
|
0,
|
|
0
|
|
],
|
|
[
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
[
|
|
0,
|
|
0
|
|
],
|
|
[
|
|
0,
|
|
0,
|
|
1
|
|
]
|
|
]
|
|
}
|