google / google/jsonnet

More efficient array comprehensions and join

Open
#362 0 comments 0 reactions 0 assignees View on GitHub
enhancement performance
Dominant language
Jsonnet
Stars
7.6k
Forks
475
PR merge metrics
No merged PRs in 30d

Description

Currently they are unnecessarily quadratic - underneath they just use +. We can be easily improve that by using a builtin that builds the result array in one go. This was already done in experimental Go version using `flatMap` builtin.

Related #222.

Ideally it would be verified automatically by some benchmarks (#360).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.