Skip to content

perf improvements on string type & windows api#321

Open
ZhidongPeng wants to merge 2 commits intoAzure:devfrom
ZhidongPeng:process
Open

perf improvements on string type & windows api#321
ZhidongPeng wants to merge 2 commits intoAzure:devfrom
ZhidongPeng:process

Conversation

@ZhidongPeng
Copy link
Collaborator

  • misc: use string.clone() over string.to_string() to avoid extra trait dispatch + formatting overhead
  • misc: avoid format! when only simple concatenation of 2 or less strings, use string.push_str to have direct memcpy
  • removed extra windows api call to query process basic info.

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.

2 participants