miller/pkg/bifs
Stephen Kitt f0a7c5832f
Performance and style fixes (#1981)
* Switch to integer ranges in for loops

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Switch to slices functions where appropriate

A number of utility functions can be replaced outright; since Miller
can technically be used as a library, these are deprecated rather than
removed. go:fix directives ensure that they can be replaced
automatically.

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Switch to reflect.TypeFor

This is slightly more efficient than TypeOf when the type is known at
compile time.

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Switch to strings.SplitSeq instead of strings.Split

SplitSeq results in fewer allocations.

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Drop obsolete build directives

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Use min/max instead of explicit comparisons

Signed-off-by: Stephen Kitt <steve@sk2.org>

* Append slices instead of looping

Signed-off-by: Stephen Kitt <steve@sk2.org>

---------

Signed-off-by: Stephen Kitt <steve@sk2.org>
2026-02-18 09:19:31 -05:00
..
arithmetic.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
arithmetic_test.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
base.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
bits.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
bits_test.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
booleans.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
cmp.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
collections.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
collections_test.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
datetime.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
hashing.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
hashing_test.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
mathlib.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
percentiles.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
random.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
regex.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
relative_time.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
stats.go Performance and style fixes (#1981) 2026-02-18 09:19:31 -05:00
stats_test.go Performance and style fixes (#1981) 2026-02-18 09:19:31 -05:00
strings.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
system.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00
types.go Multiple style updates (#1974) 2026-02-16 15:49:21 -05:00