difftreelog
ci fix clippy warnings
in: master
3 files changed
Makefilediffbeforeafterbothno changes
README.mddiffbeforeafterboth323233Official 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 faster343435You 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.3637TODO: Create docker container for easier benchmarking and/or benchmark in CI35TODO: Create docker container for easier benchmarking and/or benchmark in CI383639Also, 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:crates/jrsonnet-evaluator/src/builtin/format.rsdiffbeforeafterboth690 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 v695 } else {695 } else {696 throw!(NoSuchFormatField(f));696 throw!(NoSuchFormatField(f));697 };697 }698 value699 };698 };700699701 format_code(&mut out, &value, &c, width, precision)?;700 format_code(&mut out, &value, &c, width, precision)?;