summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/client.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-11-17 15:21:12 +0000
committerRobert Pösel <robyer@seznam.cz>2014-11-17 15:21:12 +0000
commit926a719ab7c2ae9e8205a396540eb429bf2637ff (patch)
tree7374108759cb3d7dc7b8e219c7222e37d2a8c16e /protocols/FacebookRM/src/client.h
parentb2a0ad599ee41955d63315113b02e3dbe7d20f0b (diff)
Facebook: Speed optimalization
Use caching for ContactIDToHContact, ChatIDToHContact and ThreadIDToContactID methods. Should result in some performance increase. git-svn-id: http://svn.miranda-ng.org/main/trunk@11003 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/client.h')
-rw-r--r--protocols/FacebookRM/src/client.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/client.h b/protocols/FacebookRM/src/client.h
index 14b2731232..902477e573 100644
--- a/protocols/FacebookRM/src/client.h
+++ b/protocols/FacebookRM/src/client.h
@@ -102,6 +102,11 @@ public:
std::map<std::tstring, facebook_chatroom*> chat_rooms;
std::map<std::string, facebook_notification*> notifications;
+ // Contact/thread id caches
+ std::map<std::string, std::string> thread_id_to_user_id;
+ std::map<std::tstring, MCONTACT> chat_id_to_hcontact;
+ std::map<std::string, MCONTACT> user_id_to_hcontact;
+
std::string get_newsfeed_type();
std::string get_server_type();
std::string get_privacy_type();