You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
I'm totally with you! :-) I've been making a serious effort to do just that.
I've been going for the strategy of each commit having one well explained transformation, applied across the code base. The only other option that I've thought of is to apply all the transformations to a single module and then make a PR for each module.
The current code-base does a lot of unnecessary allocations. Here are some examples of common things in the code-base that cause allocation:
format!
.to_string()
.clone()
.collect()
.to_path_buf()
.to_string_lossy()
.into_vec()
This issue is intended to classify the different patterns in the code-base that allocate unnecessarily and track the progress in cleaning them up.
&String
s (in progress: String roundup part 1 #1732)&PathBuf
(in progress: Path string roundup #1701)format!
only to use the result as a format argumentPathBuf
s only tojoin
them (in progress: Allocate fewerPathBuf
s only to join them #1736).collect()
only to iterate over the result.to_string()
only to use the result for comparisonString
s toJsonString
sString
errorsFeel free to check these boxes or add more to-dos if any come up! I believe maintainers are able to edit this post.
The text was updated successfully, but these errors were encountered: