Skip to content
Snippets Groups Projects
Commit 938fd5cf authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Faster lookup of friend data via hashmap

parent 6aa1b0eb
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,9 @@
#include <set>
#include <string>
#include <vector>
#include "absl/container/flat_hash_map.h"
#include "lluserrelations.h"
#include "lluuid.h"
#include "v3dmath.h"
......@@ -108,7 +111,7 @@ class LLAvatarTracker
// add or remove agents from buddy list. Each method takes a set
// of buddies and returns how many were actually added or removed.
typedef std::map<LLUUID, LLRelationship*> buddy_map_t;
typedef absl::flat_hash_map<LLUUID, LLRelationship*> buddy_map_t;
S32 addBuddyList(const buddy_map_t& buddies);
//S32 removeBuddyList(const buddy_list_t& exes);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment