photoprism/pkg/http
Michael Mayer b04233f2f4 Backend: Use strings.SplitSeq for split-and-iterate loops #5599
Replace strings.Split with the lazy strings.SplitSeq iterator (Go 1.23+)
in loops that only range over the tokens, avoiding the intermediate
slice allocation. The yielded substrings are identical to Split, so
behavior is unchanged. Applies the suggestion from #5599 to its three
sites (CIDR parsing, WebDAV hidden-path, overlay path checks) and
extends it to two more split-and-iterate loops in the server compression
negotiator and MCP config-options builder for consistency. The slice
returning splitPath helper is intentionally left on strings.Split.
2026-05-30 09:49:47 +00:00
..
dns Docs: Bump copyright year to 2026 in Go package headers 2026-05-25 14:39:38 +00:00
header Docs: Bump copyright year to 2026 in Go package headers 2026-05-25 14:39:38 +00:00
proxy Docs: Bump copyright year to 2026 in Go package headers 2026-05-25 14:39:38 +00:00
safe Docs: Bump copyright year to 2026 in Go package headers 2026-05-25 14:39:38 +00:00
scheme Docs: Bump copyright year to 2026 in Go package headers 2026-05-25 14:39:38 +00:00
security Backend: Use strings.SplitSeq for split-and-iterate loops #5599 2026-05-30 09:49:47 +00:00