git.delta.rocks / jrsonnet / refs/commits / b02db2da077b

difftreelog

source

crates/jrsonnet-evaluator/README.md736 Bsourcehistory
1# jrsonnet-evaluator23Interpreter for parsed jsonnet tree45## Standard library67jsonnet stdlib is embedded into evaluator, but there is different modes for this:89- `serialized-stdlib`10  - serializes standard library AST using serde11  - used by default12- none13  - leaves only stdlib source code in binary, processing them same way as user supplied data14  - slowest (as it involves parsing of standard library source code)1516### Benchmark1718Can also be run via `cargo bench`1920```markdown21# serialized-stdlib22test tests::bench_serialize ... bench:   1,763,999 ns/iter (+/- 76,211)23# none24test tests::bench_parse     ... bench:   7,206,164 ns/iter (+/- 1,067,418)25```2627## Intrinsics2829Some functions from stdlib are implemented as intrinsics