mirror of
https://github.com/photoprism/photoprism.git
synced 2026-07-18 00:59:38 +00:00
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. |
||
|---|---|---|
| .. | ||
| cmd/scanpathsgen | ||
| resources | ||
| generate.go | ||
| hash.go | ||
| hash_test.go | ||
| scan-paths.go | ||
| security.go | ||
| web_overlay.go | ||
| web_overlay_test.go | ||