lsd-ucsc / ChoRus

🎶 Choreographic programming in Rust 🎶
https://lsd-ucsc.github.io/ChoRus/
MIT License
39 stars 2 forks source link

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

Closed shumbo closed 1 year ago

shumbo commented 1 year ago

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.