Closed itchyny closed 3 months ago
Hi. Thanks for the contribution!
I agree this seems like an improvement - also just in terms of making the code a little simpler. std.strReplace
is implemented as a builtin in C++ jsonnet, so it does make some sense that this would be faster too.
This PR improves the performance of
escapeStringBash
andescapeStringDollars
. Thestd.strReplace
function is fast when the second string has length 1.