Skip to content

Optimize patch operations #32

@Angelin01

Description

@Angelin01

There are three simple optimizations:

  • Replace the HashMap in the configuration for a BTreeMap for a slightly reduced memory footprint.
  • For the patches, when can aggregate them into a single operation instead of multiple operations
    • This is specially useful if the pod has no nodeSelector or tolerations at all, since we completely avoid a loop
    • For the empty object or empty list, the behavior is similar to the one above

This could easily be benchmarked in a test or two, to validate the results

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersmaintenanceFor non strictly value adding code or changes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions