difftreelog
Merge pull request #54 from messense/rm-codegenereated-stdlib-ref
in: master
Remove remainder of `codegenerated-stdlib`
2 files changed
crates/jrsonnet-evaluator/README.mddiffbeforeafterboth889- `serialized-stdlib`9- `serialized-stdlib`10 - serializes standard library AST using serde10 - serializes standard library AST using serde11 - slower than `codegenerated-stdlib` at runtime, but have no compilation speed penality11 - used by default12- none12- none13 - leaves only stdlib source code in binary, processing them same way as user supplied data13 - 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)14 - slowest (as it involves parsing of standard library source code)151516Because of `codegenerated-stdlib` compilation slowdown, `serialized-stdlib` is used by default1718### Benchmark16### Benchmark191720Can also be run via `cargo bench`18Can also be run via `cargo bench`crates/jrsonnet-evaluator/src/builtin/stdlib.rsdiffbeforeafterboth--- a/crates/jrsonnet-evaluator/src/builtin/stdlib.rs
+++ b/crates/jrsonnet-evaluator/src/builtin/stdlib.rs
@@ -5,15 +5,6 @@
/// To avoid parsing again when issued from the same thread
#[allow(unreachable_code)]
static PARSED_STDLIB: LocExpr = {
- #[cfg(feature = "codegenerated-stdlib")]
- {
- #[allow(clippy::all)]
- return {
- use jrsonnet_parser::*;
- include!(concat!(env!("OUT_DIR"), "/stdlib.rs"))
- };
- }
-
#[cfg(feature = "serialized-stdlib")]
{
// Should not panic, stdlib.bincode is generated in build.rs