Skip to content

Conversation

@zvier
Copy link
Contributor

@zvier zvier commented Feb 7, 2021

  • pre-allocate cap for slice structure
  • if clause is no needed because access slice with range, and kubelet also use range
    method to get each capability so there is no side-effect

Signed-off-by: Jeff Zvier [email protected]

* pre-allocate cap for slice structure
* if clause is no need because of range, and kubelet also use range
  method to get each capability so there is no side-effect

Signed-off-by: Jeff Zvier <[email protected]>
@zvier zvier changed the title code optimization code optimization for generateCapabilities Feb 7, 2021
@FxKu
Copy link
Member

FxKu commented Feb 8, 2021

👍

1 similar comment
@Jan-M
Copy link
Member

Jan-M commented Feb 8, 2021

👍

@FxKu FxKu merged commit 6aeb92f into zalando:master Feb 9, 2021
@FxKu FxKu added this to the 1.6.1 milestone Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants