You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: pack_mapping: switch to xargs rather than find -exec
This decreases the test time by ~6 seconds and makes it more readable:
% time ( sudo find "bundle/rootfs" -exec stat -c '%u:%g' {} \; >/dev/null )
( sudo find "bundle/rootfs" -exec stat -c '%u:%g' {} \; > /dev/null; ) 0.07s user 0.37s system 12% cpu 3.492 total
% time ( sudo find "bundle/rootfs" | sudo xargs stat -c '%u:%g' >/dev/null )
( sudo find "bundle/rootfs" | sudo xargs stat -c '%u:%g' > /dev/null; ) 0.03s user 0.01s system 126% cpu 0.032 total
Signed-off-by: Aleksa Sarai <[email protected]>
0 commit comments