diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-09-29 13:25:05 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-09-29 14:24:09 +0200 |
commit | 5ea369adef6115702eb2d2e483d7c552d15a7c04 (patch) | |
tree | eb66450ce3ae8d40e3300adeb0e340fab90e3497 /Containerfile-testvol | |
parent | 30bf31010e4a6ca4247eef293a4202f6775d6ec9 (diff) | |
download | podman-5ea369adef6115702eb2d2e483d7c552d15a7c04.tar.gz podman-5ea369adef6115702eb2d2e483d7c552d15a7c04.tar.bz2 podman-5ea369adef6115702eb2d2e483d7c552d15a7c04.zip |
libpod: add GetConfigNoCopy()
Add a new function to libpod to directly access the runtime
configuration without creating an expensive deep copy. Further migrate
a number of callers to this new function.
This drops the number of calls to JSONDeepCopy from 4 to 1 in a simple
`podman run --rm -d busybox top`.
Future work: Please note that there are more callers of GetConfig() that
can me migrated to GetConfigNoCopy().
[NO TESTS NEEDED]
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'Containerfile-testvol')
0 files changed, 0 insertions, 0 deletions