Commit aa03023
refactor: names is passed by value — prefer const std::vector<std::string>&
With svchost.exe yielding ~78 related processes, this copies all those strings on every call. Since names is only read inside the function, pass by const reference like pids
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>1 parent 17cc779 commit aa03023
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
1730 | | - | |
| 1730 | + | |
1731 | 1731 | | |
1732 | 1732 | | |
1733 | 1733 | | |
| |||
0 commit comments