mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Having a map per log entry seemed heavier than necessary. These attributes end up being sorted and serialized, so storing them in a map doesn't add anything (there's no random access element). In SwarmKit, they originate as a slice, so there's an unnecessary conversion to a map and back. This also fixes the sort comparator, which used to inefficiently split the string on each comparison. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> Upstream-commit: b642b3f21f17cf50c79e464d3aedc93b2dbf0fb0 Component: engine