mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
Whenever a command arguments is formed by a large linked list, repeatedly appending to arguments and displayed messages took a long time because go will have to allocate/copy a lot of times. This speeds up the allocation by preallocate arrays of correct size for args and msg Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com> (github: dqminh) Upstream-commit: 3aae63f4528ab1d7e1e12cc4e2e7bacd97991d43 Component: engine