Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the copying when evaluating a policy #156

Merged

Conversation

mprahl
Copy link
Member

@mprahl mprahl commented Aug 7, 2023

This reduces the recursive copying to just the value in the object
template since that is what is used for merging the existing value in.
For safety, the existing object that is used to merge into the template
object is copied just once up front.

This reduces the recursive copying to just the value in the object
template since that is what is used for merging the existing value in.
For safety, the existing object that is used to merge into the template
object is copied just once up front.

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
@mprahl mprahl changed the title WIP: Reduce the copying when evaluating a policy Reduce the copying when evaluating a policy Aug 8, 2023
@mprahl
Copy link
Member Author

mprahl commented Aug 8, 2023

@JustinKuli what are your thoughts on this one? I'm aiming to reduce memory consumption and this seemed like a decent candidate.

@openshift-ci
Copy link

openshift-ci bot commented Aug 8, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mprahl, yiraeChristineKim

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [mprahl,yiraeChristineKim]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit d877c5e into open-cluster-management-io:main Aug 8, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants