kaniko/pkg/util
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
..
bucket refactor: simpler local integration tests (#2110) 2022-06-14 13:38:01 -04:00
proc proc: detect kubernetes runtime by mounts (#2054) 2022-04-18 10:20:42 -04:00
.editorconfig revert back to old 0.17.1 behavior 2020-03-06 23:48:31 -08:00
azureblob_util.go Apply suggestions from code review 2019-10-21 10:19:32 +08:00
azureblob_util_test.go Add more test case for azureblob_util.go 2019-10-14 13:55:03 +08:00
command_util.go Refactors IsSrcRemoteFileURL to only validate the URL is valid (#2563) 2023-06-14 10:20:28 -07:00
command_util_test.go Refactors IsSrcRemoteFileURL to only validate the URL is valid (#2563) 2023-06-14 10:20:28 -07:00
fs_util.go Avoid redundant calls to filepath.Clean (#2652) 2023-07-31 17:18:16 -07:00
fs_util_test.go Avoid redundant calls to filepath.Clean (#2652) 2023-07-31 17:18:16 -07:00
gcr_util.go Fix implicit GCR auth (#1856) 2021-12-28 20:34:32 -05:00
gcr_util_test.go test: use `T.TempDir` to create temporary test directory (#1918) 2022-02-07 13:27:34 -05:00
groupids_cgo.go fix: getUIDandGID is able to resolve non-existing users and groups (#2106) 2022-07-12 10:21:37 -04:00
groupids_fallback.go fix: getUIDandGID is able to resolve non-existing users and groups (#2106) 2022-07-12 10:21:37 -04:00
syscall_credentials.go fix: getUIDandGID is able to resolve non-existing users and groups (#2106) 2022-07-12 10:21:37 -04:00
syscall_credentials_test.go fix: getUIDandGID is able to resolve non-existing users and groups (#2106) 2022-07-12 10:21:37 -04:00
tar_util.go Fix Integration tests (#2425) 2023-03-21 12:30:54 -04:00
tar_util_test.go refactor: simpler local integration tests (#2110) 2022-06-14 13:38:01 -04:00
transport_util.go Add mTLS (client cert) registry authentication (#2180) 2023-05-18 14:20:51 -07:00
transport_util_test.go Add mTLS (client cert) registry authentication (#2180) 2023-05-18 14:20:51 -07:00
util.go chore: add debug line to RedoHasher (#2591) 2023-06-28 14:13:35 -04:00
util_test.go Improve retry behavior for push operation (#1578) 2021-02-22 21:25:58 -08:00