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

review the use of String and switch to &str when possible #22

Merged
merged 2 commits into from
Oct 7, 2023

Conversation

shumbo
Copy link
Member

@shumbo shumbo commented Oct 7, 2023

For better performance.

  1. Location names are always &'static str and we do not need to turn them into Strings
  2. Hostname for the HTTP transport can also be &str because they are fixed and we don't mutate.

@shumbo shumbo merged commit 897104c into shumbo/available-locations Oct 7, 2023
3 checks passed
@shumbo shumbo deleted the shumbo/http-str branch October 7, 2023 01:25
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.

1 participant