kaniko/pkg
Aaron Lehmann 32ce1bf67e
Avoid redundant calls to filepath.Clean (#2652)
filepath.Clean shows up in profiles as a hot spot, and there seem to be
many redundant calls, particularly in ignorelist handling. We can avoid
these redundant calls by pre-cleaning entries in the ignore list, and
providing fast paths when we know we're already dealing with a cleaned
candidate path.

Before:

     580ms  3.03% 72.35%      590ms  3.08%  path/filepath.(*lazybuf).append (inline)
     390ms  2.03% 74.39%      990ms  5.16%  path/filepath.Clean

After:

     0.13s  0.69% 84.01%      0.17s  0.91%  path/filepath.(*lazybuf).append (inline)
     0.13s  0.69% 84.70%      0.31s  1.65%  path/filepath.Clean
2023-07-31 17:18:16 -07:00
..
buildcontext use aws-sdk-go-v2 (#2550) 2023-06-07 14:54:30 -07:00
cache feat: cache dockerfile images through warmer (#2499) 2023-06-21 12:00:22 -07:00
commands Avoid redundant calls to filepath.Clean (#2652) 2023-07-31 17:18:16 -07:00
config Allows to disable the fallback to the default registry on image pull (#2637) 2023-07-26 13:05:37 -07:00
constants Fix fs_util tests failing on systems with /tmp mountpoint (#2583) 2023-06-19 12:01:20 -07:00
creds Add GitLab CI credentials helper (#2040) 2022-04-11 13:13:47 -04:00
dockerfile Fix multistage caching with COPY --from (#2559) 2023-06-16 10:56:05 -07:00
executor Fix fs_util tests failing on systems with /tmp mountpoint (#2583) 2023-06-19 12:01:20 -07:00
fakes refactor cache.Warm and add tests 2020-01-10 12:29:17 -08:00
filesystem Avoid redundant calls to filepath.Clean (#2652) 2023-07-31 17:18:16 -07:00
image Allows to disable the fallback to the default registry on image pull (#2637) 2023-07-26 13:05:37 -07:00
logging Add timestamp to logs 2020-04-23 13:40:47 +02:00
mocks/go-containerregistry/mockv1 rename mock pkg for lint 2020-01-17 14:59:14 -08:00
snapshot Don't write whiteout files to directories that were replaced with files or links (#2590) 2023-06-22 10:45:47 -07:00
timing Fix Integration tests (#2425) 2023-03-21 12:30:54 -04:00
util Avoid redundant calls to filepath.Clean (#2652) 2023-07-31 17:18:16 -07:00
version Set a user-agent for registry pushes. (#87) 2018-04-13 14:25:58 -07:00