go-sprout / sprout

From sprig to sprout - Useful template functions for Go templates with steroids
https://sprout.atom.codes
MIT License
86 stars 4 forks source link

perf: reduce all memory fingerprint #56

Closed 42atomys closed 3 weeks ago

42atomys commented 3 weeks ago

Description

Aim to minimize memory allocations as much as possible to alleviate the burden on the garbage collector in large-scale applications. By optimizing the way memory is used within the framework, we ensure that Sprout is not only efficient in its functionality but also in its resource consumption. This approach contributes to overall better performance and scalability of applications using Sprout.

Changes

Checklist

Additional Information

Somes functions output are incorrect by definition in Sprig and Sprout fix that 🎉 A list are presented in SPRIG_TO_SPROUT_CHANGES_NOTES.md and needs to be migrated in official documentation

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Files Coverage Δ
internal/helpers/helpers.go 100.0% <100.0%> (ø)
registry/conversion/functions.go 100.0% <100.0%> (ø)
registry/maps/functions.go 90.9% <100.0%> (+0.5%) :arrow_up:
registry/numeric/helpers.go 100.0% <100.0%> (ø)
registry/random/helpers.go 100.0% <100.0%> (ø)
registry/slices/functions.go 100.0% <100.0%> (ø)
registry/slices/helpers.go 100.0% <100.0%> (ø)
registry/std/functions.go 100.0% <100.0%> (ø)
registry/strings/functions.go 100.0% <100.0%> (ø)
registry/time/functions.go 100.0% <100.0%> (ø)
... and 1 more