influxdb/pkg/slices
Ayan George 2529799abb
refactor: Change ToLower comparisons to EqualFold (#18147)
When comparing strings in a case-insensitive way, strings.EqualFold() is
(almost?) always faster than comparing the results of strings.ToLower().

In addition, strings.EqualFold() never causes an allocation.

This patch replaces case-insensitive string comparisons that use
strings.ToLower() with a strings.EqualFold() call.
2020-05-18 19:46:59 -04:00
..
bytes.go Upgrade flux to the latest version and remove the platform dependency 2019-04-04 10:55:09 -05:00
bytes_test.go Upgrade flux to the latest version and remove the platform dependency 2019-04-04 10:55:09 -05:00
merge.gen.go Add utility functions for merging k collections of sorted slices 2017-11-09 09:28:37 -07:00
merge.gen.go.tmpl Add utility functions for merging k collections of sorted slices 2017-11-09 09:28:37 -07:00
merge_test.go Add utility functions for merging k collections of sorted slices 2017-11-09 09:28:37 -07:00
strings.go refactor: Change ToLower comparisons to EqualFold (#18147) 2020-05-18 19:46:59 -04:00
strings_test.go Test slices strings Exists* functions 2017-08-08 20:33:26 -04:00
tmpldata Add utility functions for merging k collections of sorted slices 2017-11-09 09:28:37 -07:00