Carl Henrik Lunde
4842d8be60
perf: Intersection: Avoid callid AllIds inside inner loop
...
This shaves of another 8.5 seconds (one third) of the remaining execution
time for a kustomization tree with 4000 documents, reducing the execution
time from 27.46s to 18.94s
0.02s 0.062% 11.14% 8.45s 26.36% sigs.k8s.io/kustomize/api/internal/accumulator.(*ResAccumulator).Intersection
0.06s 0.19% 11.32% 8.32s 25.95% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).AllIds
before
(pprof) top25 -cum
Showing nodes accounting for 3.63s, 11.32% of 32.06s total
Dropped 614 nodes (cum <= 0.16s)
Showing top 25 nodes out of 171
flat flat% sum% cum cum%
0 0% 0% 27.46s 85.65% github.com/spf13/cobra.(*Command).Execute
0 0% 0% 27.46s 85.65% github.com/spf13/cobra.(*Command).ExecuteC
0 0% 0% 27.46s 85.65% github.com/spf13/cobra.(*Command).execute
0 0% 0% 27.46s 85.65% main.main
0 0% 0% 27.46s 85.65% runtime.main
0 0% 0% 27.46s 85.65% sigs.k8s.io/kustomize/kustomize/v5/commands/build.NewCmdBuild.func1
0 0% 0% 26.95s 84.06% sigs.k8s.io/kustomize/api/krusty.(*Kustomizer).Run
0 0% 0% 22.09s 68.90% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).MakeCustomizedResMap (inline)
0 0% 0% 22.09s 68.90% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).makeCustomizedResMap
0.29s 0.9% 0.9% 20.96s 65.38% sigs.k8s.io/kustomize/api/resource.(*Resource).CurId
0 0% 0.9% 13.61s 42.45% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).Append
0 0% 0.9% 13.60s 42.42% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).GetMatchingResourcesByCurrentId (partial-inline)
0.14s 0.44% 1.34% 13.60s 42.42% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).filteredById
0.05s 0.16% 1.50% 12.91s 40.27% sigs.k8s.io/kustomize/api/resmap.GetCurrentId
0.25s 0.78% 2.28% 12.48s 38.93% sigs.k8s.io/kustomize/api/resource.(*Resource).GetGvk (inline)
0.49s 1.53% 3.81% 12.23s 38.15% sigs.k8s.io/kustomize/kyaml/resid.GvkFromNode
0 0% 3.81% 11.61s 36.21% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).IgnoreLocal
0 0% 3.81% 10.47s 32.66% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).AccumulateTarget
0 0% 3.81% 10.47s 32.66% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateTarget
0.01s 0.031% 3.84% 10.46s 32.63% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateResources
0 0% 3.84% 10.43s 32.53% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateDirectory
0.64s 2.00% 5.83% 10.12s 31.57% sigs.k8s.io/kustomize/kyaml/yaml.visitMappingNodeFields
1.68s 5.24% 11.07% 9.48s 29.57% sigs.k8s.io/kustomize/kyaml/yaml.visitFieldsWhileTrue
0.02s 0.062% 11.14% 8.45s 26.36% sigs.k8s.io/kustomize/api/internal/accumulator.(*ResAccumulator).Intersection
0.06s 0.19% 11.32% 8.32s 25.95% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).AllIds
after
(pprof) top30 -cum
Showing nodes accounting for 5.04s, 22.63% of 22.27s total
Dropped 540 nodes (cum <= 0.11s)
Showing top 30 nodes out of 209
flat flat% sum% cum cum%
0 0% 0% 18.94s 85.05% github.com/spf13/cobra.(*Command).Execute
0 0% 0% 18.94s 85.05% github.com/spf13/cobra.(*Command).ExecuteC
0 0% 0% 18.94s 85.05% github.com/spf13/cobra.(*Command).execute
0 0% 0% 18.94s 85.05% main.main
0 0% 0% 18.94s 85.05% runtime.main
0 0% 0% 18.94s 85.05% sigs.k8s.io/kustomize/kustomize/v5/commands/build.NewCmdBuild.func1
0 0% 0% 18.40s 82.62% sigs.k8s.io/kustomize/api/krusty.(*Kustomizer).Run
0 0% 0% 13.65s 61.29% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).MakeCustomizedResMap (inline)
0 0% 0% 13.65s 61.29% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).makeCustomizedResMap
0 0% 0% 13.52s 60.71% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).Append
0 0% 0% 13.44s 60.35% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).GetMatchingResourcesByCurrentId (inline)
0.16s 0.72% 0.72% 13.44s 60.35% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).filteredById
0.04s 0.18% 0.9% 12.54s 56.31% sigs.k8s.io/kustomize/api/resmap.GetCurrentId
0.19s 0.85% 1.75% 12.49s 56.08% sigs.k8s.io/kustomize/api/resource.(*Resource).CurId
0 0% 1.75% 10.37s 46.56% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).AccumulateTarget
0 0% 1.75% 10.37s 46.56% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateResources
0 0% 1.75% 10.37s 46.56% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateTarget
0 0% 1.75% 10.34s 46.43% sigs.k8s.io/kustomize/api/internal/target.(*KustTarget).accumulateDirectory
0.19s 0.85% 2.60% 7.82s 35.11% sigs.k8s.io/kustomize/api/resource.(*Resource).GetGvk (inline)
0.42s 1.89% 4.49% 7.63s 34.26% sigs.k8s.io/kustomize/kyaml/resid.GvkFromNode
0.26s 1.17% 5.66% 6.01s 26.99% sigs.k8s.io/kustomize/kyaml/yaml.visitMappingNodeFields
0 0% 5.66% 5.76s 25.86% sigs.k8s.io/kustomize/api/internal/accumulator.(*ResAccumulator).MergeAccumulator
1.12s 5.03% 10.69% 5.75s 25.82% sigs.k8s.io/kustomize/kyaml/yaml.visitFieldsWhileTrue
0 0% 10.69% 5.57s 25.01% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).appendAll (inline)
0 0% 10.69% 5.55s 24.92% sigs.k8s.io/kustomize/api/internal/accumulator.(*ResAccumulator).AppendAll (inline)
0 0% 10.69% 5.55s 24.92% sigs.k8s.io/kustomize/api/resmap.(*resWrangler).AppendAll
0 0% 10.69% 4.73s 21.24% sigs.k8s.io/kustomize/api/internal/builtins.(*SortOrderTransformerPlugin).Transform
0 0% 10.69% 4.73s 21.24% sigs.k8s.io/kustomize/api/krusty.(*Kustomizer).applySortOrder
0 0% 10.69% 4.72s 21.19% sigs.k8s.io/kustomize/api/internal/builtins.applyOrdering
2.66s 11.94% 22.63% 4.63s 20.79% sigs.k8s.io/kustomize/kyaml/yaml.visitMappingNodeFields.func2
2023-03-12 15:50:11 +01:00
Kubernetes Prow Robot
bf6e6ad33b
Merge pull request #5085 from koba1t/chore/update_golangci_to_1.51.2
...
update golangci-lint to v1.51.2
2023-03-10 14:28:39 -08:00
koba1t
e1094da3cf
skip unrelevant lint
2023-03-11 05:11:47 +09:00
koba1t
7d150ce973
Revert "use enable-all on golangci-lint"
...
This reverts commit 39264a7057 .
2023-03-11 05:08:25 +09:00
koba1t
39264a7057
use enable-all on golangci-lint
2023-03-09 05:25:19 +09:00
koba1t
736e166168
update golangci-lint to 1.51.2
2023-03-09 05:08:25 +09:00
Kubernetes Prow Robot
e8b521e3ab
Merge pull request #5053 from kubernetes-sigs/dependabot/go_modules/functions/examples/application-cr/image/golang.org/x/net-0.7.0
...
Bump golang.org/x/net from 0.4.0 to 0.7.0 in /functions/examples/application-cr/image
2023-02-28 11:33:16 -08:00
dependabot[bot]
a4954d386a
Bump golang.org/x/net in /functions/examples/application-cr/image
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.4.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-27 18:17:11 +00:00
Kubernetes Prow Robot
976193ce70
Merge pull request #5054 from kubernetes-sigs/dependabot/go_modules/cmd/depprobcheck/golang.org/x/net-0.7.0
...
Bump golang.org/x/net from 0.4.0 to 0.7.0 in /cmd/depprobcheck
2023-02-27 10:08:39 -08:00
dependabot[bot]
ee0b26601b
Bump golang.org/x/net from 0.4.0 to 0.7.0 in /cmd/depprobcheck
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.4.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.4.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-27 16:35:34 +00:00
Kubernetes Prow Robot
78e310231e
Merge pull request #5065 from kubernetes-sigs/dependabot/go_modules/cmd/depprobcheck/golang.org/x/crypto-0.1.0
...
Bump golang.org/x/crypto from 0.0.0-20210921155107-089bfa567519 to 0.1.0 in /cmd/depprobcheck
2023-02-27 08:34:38 -08:00
Kubernetes Prow Robot
ffa554b371
Merge pull request #5064 from kubernetes-sigs/dependabot/go_modules/functions/examples/application-cr/image/golang.org/x/crypto-0.1.0
...
Bump golang.org/x/crypto from 0.0.0-20210921155107-089bfa567519 to 0.1.0 in /functions/examples/application-cr/image
2023-02-27 08:26:39 -08:00
dependabot[bot]
68a0fc95da
Bump golang.org/x/crypto in /cmd/depprobcheck
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.0.0-20210921155107-089bfa567519 to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases )
- [Commits](https://github.com/golang/crypto/commits/v0.1.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-25 03:30:10 +00:00
dependabot[bot]
9b43e76947
Bump golang.org/x/crypto in /functions/examples/application-cr/image
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.0.0-20210921155107-089bfa567519 to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases )
- [Commits](https://github.com/golang/crypto/commits/v0.1.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-25 00:50:47 +00:00
Kubernetes Prow Robot
adf760e246
Merge pull request #5058 from ephesused/optimize-gvk-version
...
perf: optimize Gvk.ApiVersion()
2023-02-21 11:57:56 -08:00
Kubernetes Prow Robot
7a89df8350
Merge pull request #5048 from cailynse/issue-5039
...
Remove Log Assignment to Stdout
2023-02-21 11:23:56 -08:00
Ed Overton
93d7511b38
perf: optimize Gvk.ApiVersion()
...
Convert Gvk.ApiVersion() from using strings.Builder to raw string
concatenation. The logic in Gvk.ApiVersion() is simple enough that
raw concatenation executes quicker and consumes less memory.
2023-02-21 11:02:57 -05:00
Cailyn Edwards
7c33fe30b7
Remove Log Assignment to Stdout
2023-02-21 10:53:22 -05:00
Kubernetes Prow Robot
22dbd3eb17
Merge pull request #5038 from KnVerey/unpin-modules
...
Update all modules to latest releases, but unpinned
2023-02-08 11:08:44 -08:00
Katrina Verey
51e2714408
Back to development mode; unpin the modules
2023-02-07 19:56:39 -05:00
Katrina Verey
d825beff27
Update all modules to latest releases
2023-02-07 19:56:11 -05:00
Katrina Verey
aa4eb59bb0
Fix constant reference in instructions
2023-02-07 19:54:58 -05:00
Katrina Verey
00d450cce7
Revert plugin exclusion to name sanity check
2023-02-07 19:47:21 -05:00
Kubernetes Prow Robot
a090ceac6c
Merge pull request #5026 from KnVerey/update_releasing_instr
...
Update releasing workflow
2023-02-07 13:14:58 -08:00
Katrina Verey
63c37b1780
Update releasing/README.md
...
Co-authored-by: Cailyn <cailyn.s.e@gmail.com >
2023-02-06 16:49:19 -05:00
Kubernetes Prow Robot
0fd385d719
Merge pull request #4946 from researchapps/add/github-token-install
...
add GitHub token to install_kustomize.sh
2023-02-02 13:58:42 -08:00
Katrina Verey
57d8583887
Fix lint errors
2023-02-02 14:25:20 -05:00
Katrina Verey
9c116e9031
Bespoke mod edits no longer needed if gorepomod pins all modules
2023-02-02 14:23:23 -05:00
Katrina Verey
e6c16a6ddc
Restore previous test-go-mod and commit changes
2023-02-02 14:20:13 -05:00
Katrina Verey
03669a1804
Improve error message and fix typo in iampolicygenerator module name
2023-02-02 14:15:40 -05:00
vsoch
3c44db8746
add GitHub token to install_kustomize.sh
...
Signed-off-by: vsoch <vsoch@users.noreply.github.com >
2023-02-02 12:08:20 -07:00
Katrina Verey
9a1a203b52
Update example targets
2023-02-02 12:28:37 -05:00
Katrina Verey
8b51c295a1
Allow gorepomod to update plugin mod files
2023-02-02 11:33:46 -05:00
Kubernetes Prow Robot
738ca56ccd
Merge pull request #5027 from KnVerey/remove-replaces
...
Remove leftover replace statements
kustomize/v5.0.0
2023-02-02 08:32:41 -08:00
Katrina Verey
f901b4a5fd
Remove leftover replace statements
2023-02-02 11:23:00 -05:00
Katrina Verey
4fff8399ea
Update releasing instructions
2023-02-02 11:22:00 -05:00
Katrina Verey
e532d6f1a1
Merge pull request #5025 from KnVerey/pinToApi
...
Update api to v0.13.1
2023-02-02 10:58:41 -05:00
Katrina Verey
db2a3800ed
Update api to v0.13.1
2023-02-02 10:45:39 -05:00
Kubernetes Prow Robot
183928e6ba
Merge pull request #5023 from KnVerey/issue4998
...
Fix regression with scp-style urls with only one path element
api/v0.13.1
2023-02-01 23:41:29 -08:00
Katrina Verey
c0e2030905
Fix regression with scp-style urls with only one path element
2023-02-01 22:19:40 -05:00
Kubernetes Prow Robot
87c428e7cd
Merge pull request #5021 from KnVerey/module_version_v5
...
Bump kustomize module to v5
2023-02-01 17:03:29 -08:00
Katrina Verey
f5ad795995
Bump kustomize module to v5
2023-02-01 19:01:08 -05:00
Kubernetes Prow Robot
f851cc7181
Merge pull request #5020 from KnVerey/pinToCmdConfig
...
Pin to cmd config
api/v0.13.0
2023-02-01 14:39:36 -08:00
Katrina Verey
7e3ad53890
Allow cloud build to authenticate to gh when generating changelog
2023-02-01 17:25:57 -05:00
Katrina Verey
5cdc080406
Update cmd/config to v0.11.0
2023-02-01 17:22:46 -05:00
Katrina Verey
10fb04cdf2
Merge pull request #5019 from KnVerey/pinToKyaml
...
Update kyaml to v0.14.0
cmd/config/v0.11.0
2023-02-01 17:09:20 -05:00
Katrina Verey
ea8fc77f2f
Update kyaml in the secondary modules
2023-02-01 16:55:56 -05:00
Katrina Verey
e9507c940d
Update kyaml to v0.14.0
2023-02-01 16:44:34 -05:00
Katrina Verey
bea105d793
Merge pull request #5017 from KnVerey/fix-changelog-unauthed
...
Don't have empty string when no auth info
kyaml/v0.14.0
2023-02-01 16:30:39 -05:00
Katrina Verey
e4d7eaa479
Don't have empty string when no auth info
2023-02-01 16:28:20 -05:00