Skip to content

Comments

feat: helm performance improvement by deep copying coalesce globals#31841

Open
AnubhavT007 wants to merge 1 commit intohelm:mainfrom
AnubhavT007:feat/helm-performance-improvement
Open

feat: helm performance improvement by deep copying coalesce globals#31841
AnubhavT007 wants to merge 1 commit intohelm:mainfrom
AnubhavT007:feat/helm-performance-improvement

Conversation

@AnubhavT007
Copy link

@AnubhavT007 AnubhavT007 commented Feb 18, 2026

What this PR does / why we need it:
This PR uses deep copy in coalesceGlobals instead of shallow copy.

Due to this change, helm command's performance got massive improvement (both in time & memory consumption)

Special notes for your reviewer:
This change is being used within my company since a very long time (was being used in helm v3 also), so I suggest to make this change in helm v4 which will be a huge performance improvement.

Moreover, I am below sharing some performance difference while executing helm commands with/without this perf change on big bundles of my company (can not share the bundle).

  helm-package helm-template helm-lint helm-install:dry helm-install
Helm v3 >35min (Needs very high memory)   >40min (Needs very high memory)    >40min (Needs very high memory)
   
Helm v3-perf   4min 53sec 3min 45sec 5min 51sec 5min 33sec
Helm v4   36min 21sec(Needs very high memory) 31 sec 34min 21sec  
Helm v4-perf 3min (around)  1min 44sec 16sec 2min 51sec  

If applicable:

  • this PR contains user facing changes (the docs needed label should be applied if so)
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 18, 2026
Signed-off-by: antyagi <anubhav.tyagi@soprabanking.com>
@anubhav-tyagi1 anubhav-tyagi1 force-pushed the feat/helm-performance-improvement branch from 48d81c5 to f9054a5 Compare February 18, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants