issues
search
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.
Location names are always
&'static str
and we do not need to turn them into
String
s
Hostname for the HTTP transport can also be
&str
because they are fixed and we don't mutate.
For better performance.
&'static str
and we do not need to turn them intoString
s&str
because they are fixed and we don't mutate.