git.delta.rocks / jrsonnet / refs/commits / 46fae7b561fd

difftreelog

ci fix clippy warnings

Lach2020-08-23parent: #0629674.patch.diff
in: master

3 files changed

deletedMakefilediffbeforeafterboth

no changes

modifiedREADME.mddiffbeforeafterboth
3232
33Official benchmark report are available [in this gist](https://gist.github.com/CertainLach/5770d7ad4836066f8e0bd91e823e451b), and updated sometimes. Here it tested against golang, C++, and scala impl. As you can see, it is a lot faster33Official benchmark report are available [in this gist](https://gist.github.com/CertainLach/5770d7ad4836066f8e0bd91e823e451b), and updated sometimes. Here it tested against golang, C++, and scala impl. As you can see, it is a lot faster
3434
35You can generate this report by calling `make benchmarks`, but it probally won't work in standard setup, you need to link golang jsonnet impl to gojsonnet, and c++ impl to jsonnet.
36
37TODO: Create docker container for easier benchmarking and/or benchmark in CI35TODO: Create docker container for easier benchmarking and/or benchmark in CI
3836
39Also, there is some ideas to improve performance even further, by i.e:37Also, there is some ideas to improve performance even further, by i.e:
modifiedcrates/jrsonnet-evaluator/src/builtin/format.rsdiffbeforeafterboth
690 if f.is_empty() {690 if f.is_empty() {
691 throw!(MappingKeysRequired);691 throw!(MappingKeysRequired);
692 }692 }
693 let value = if let Some(v) = values.get(f.clone())? {693 if let Some(v) = values.get(f.clone())? {
694 v694 v
695 } else {695 } else {
696 throw!(NoSuchFormatField(f));696 throw!(NoSuchFormatField(f));
697 };697 }
698 value
699 };698 };
700699
701 format_code(&mut out, &value, &c, width, precision)?;700 format_code(&mut out, &value, &c, width, precision)?;