1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-28 20:27:46 +00:00

std::set -> std::vector (investigate further)

This commit is contained in:
Maru 2018-03-18 01:26:40 -03:00
parent 29428599e1
commit 44d158e4e0
2 changed files with 3 additions and 3 deletions

View file

@ -53,8 +53,8 @@ protected:
GroupType m_type{ GroupType::FriendList };
uint32_t m_maxCapacity{ 200 };
// todo: (urgent) think of a way to only use a single std set, use index based for correlating with data
std::set< FriendEntry > m_entries;
// todo: profile and evaluate set vs vector approach
std::vector< FriendEntry > m_entries;
};

View file

@ -85,7 +85,7 @@ protected:
uint32_t m_maxRoles{ 50 };
std::chrono::steady_clock::time_point m_createTime{ std::chrono::steady_clock::now() };
std::set< uint64_t > m_members;
std::vector< uint64_t > m_members;
private: