Commit 19f8b23
committed
feat(template): optimize sprig function init
Pre-compute Sprig template functions during package init.
Avoids repeated map allocation and string concatenation
for Sprig functions on every template execution, addressing
performance overhead reported in #2031.
Signed-off-by: Ville Vesilehto <[email protected]>1 parent 1adb94d commit 19f8b23
1 file changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
37 | 50 | | |
38 | 51 | | |
39 | 52 | | |
| |||
436 | 449 | | |
437 | 450 | | |
438 | 451 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
443 | 455 | | |
444 | 456 | | |
445 | 457 | | |
| |||
0 commit comments