go-jsonnet/testdata/builtinSubStr_second_parameter_not_number.jsonnet
Weston McNamee 27b4c60bc7 feat: Improve performance of substr by 84.44%
This pulls in the implementation of substr into native Go instead of interpretted Jsonnet.

benchmark                       old ns/op     new ns/op     delta
Benchmark_Builtin_substr-16     97121527      15115905      -84.44%

part of #111
2020-01-26 09:20:58 +01:00

1 line
29 B
Jsonnet

std.substr("hello", "foo", 5)