mirror of
https://git.suyu.dev/suyu/suyu
synced 2026-03-09 10:21:06 +00:00
Using reserve() for optimization inserts, marked unused pair items and minor code refactor
This commit is contained in:
committed by
chaphidoesstuff
parent
9490b5264e
commit
e886f27816
@@ -481,6 +481,7 @@ void GDBStub::HandleQuery(std::string_view command) {
|
||||
// beginning of list
|
||||
const auto& threads = GetProcess()->GetThreadList();
|
||||
std::vector<std::string> thread_ids;
|
||||
thread_ids.reserve(threads.size());
|
||||
for (const auto& thread : threads) {
|
||||
thread_ids.push_back(fmt::format("{:x}", thread.GetThreadId()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user