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

difftreelog

Remove remainder of `codegenerated-stdlib`

messense2021-07-13parent: #b6223e5.patch.diff
in: master

2 files changed

modifiedcrates/jrsonnet-evaluator/README.mddiffbeforeafterboth
--- a/crates/jrsonnet-evaluator/README.md
+++ b/crates/jrsonnet-evaluator/README.md
@@ -8,12 +8,10 @@
 
 - `serialized-stdlib`
   - serializes standard library AST using serde
-  - slower than `codegenerated-stdlib` at runtime, but have no compilation speed penality
+  - used by default
 - none
   - leaves only stdlib source code in binary, processing them same way as user supplied data
   - slowest (as it involves parsing of standard library source code)
-
-Because of `codegenerated-stdlib` compilation slowdown, `serialized-stdlib` is used by default
 
 ### Benchmark
 
modifiedcrates/jrsonnet-evaluator/src/builtin/stdlib.rsdiffbeforeafterboth
5 /// To avoid parsing again when issued from the same thread5 /// To avoid parsing again when issued from the same thread
6 #[allow(unreachable_code)]6 #[allow(unreachable_code)]
7 static PARSED_STDLIB: LocExpr = {7 static PARSED_STDLIB: LocExpr = {
8 #[cfg(feature = "codegenerated-stdlib")]
9 {
10 #[allow(clippy::all)]
11 return {
12 use jrsonnet_parser::*;
13 include!(concat!(env!("OUT_DIR"), "/stdlib.rs"))
14 };
15 }
16
17 #[cfg(feature = "serialized-stdlib")]8 #[cfg(feature = "serialized-stdlib")]
18 {9 {