git.delta.rocks / jrsonnet / refs/commits / 1f06faf67dd2

difftreelog

perf(evaluator) do not clone FuncDesc

Лач2020-07-02parent: #9e7e8fe.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-evaluator/src/val.rsdiffbeforeafterboth
56 }56 }
57}57}
5858
59#[derive(Debug, PartialEq, Clone)]59#[derive(Debug, PartialEq)]
60pub struct FuncDesc {60pub struct FuncDesc {
61 pub ctx: Context,61 pub ctx: Context,
62 pub params: ParamsDesc,62 pub params: ParamsDesc,
120 Lazy(LazyVal),120 Lazy(LazyVal),
121 Arr(Rc<Vec<Val>>),121 Arr(Rc<Vec<Val>>),
122 Obj(ObjValue),122 Obj(ObjValue),
123 Func(FuncDesc),123 Func(Rc<FuncDesc>),
124124
125 // Library functions implemented in native125 // Library functions implemented in native
126 Intristic(Rc<str>, Rc<str>),126 Intristic(Rc<str>, Rc<str>),