openGemini icon indicating copy to clipboard operation
openGemini copied to clipboard

perf: cache local variables to reduce repeated calculation

Open scuzyj opened this issue 1 year ago • 0 comments

What problem does this PR solve?

Issue Number: close/fix/resolve/ref #xxx

What is changed and how it works?

Please describe how it works

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • [ ] Test A
  • [ ] Test B
  • [ ] Test cases to be added
  • [ ] No code

Checklist:

  • [ ] My code follows the style guidelines of this project
  • [ ] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] New and existing unit tests pass locally with my changes
  • [ ] Any dependent changes have been merged and published in downstream modules

scuzyj avatar May 16 '24 01:05 scuzyj