1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-28 06:56:29 -05:00

Using reserve() for optimization inserts, marked unused pair items and minor code refactor

This commit is contained in:
Herman Semenov
2024-04-12 15:42:47 +03:00
committed by chaphidoesstuff
parent 9490b5264e
commit e886f27816
27 changed files with 43 additions and 32 deletions

View File

@@ -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()));
}