Skip to content

[fix] optimize some metric style in curvefs #2417

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

Merged
merged 1 commit into from
Apr 23, 2023
Merged

[fix] optimize some metric style in curvefs #2417

merged 1 commit into from
Apr 23, 2023

Conversation

Xinlong-Chen
Copy link
Contributor

@Xinlong-Chen Xinlong-Chen commented Apr 21, 2023

What problem does this PR solve?

Issue Number: #2319

Problem Summary: Use static const std::string xxx to replace const std::string xxx in a struct type.

What is changed and how it works?

What's Changed: some metric class in curvefs/src/client/metric, add a cpp file to initialize it;

How it Works: static variables only have one copy for all objects, so it occupy less memory in this way.

Side effects(Breaking backward compatibility? Performance regression?):

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

Signed-off-by: Xinlong Chen <xl_chen@zju.edu.cn>
@Xinlong-Chen
Copy link
Contributor Author

cicheck

@Xinlong-Chen Xinlong-Chen changed the title [fix]optimize some metric style in curvefs [fix] optimize some metric style in curvefs Apr 21, 2023
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