From 926a719ab7c2ae9e8205a396540eb429bf2637ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 17 Nov 2014 15:21:12 +0000 Subject: 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 --- protocols/FacebookRM/src/client.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/FacebookRM/src/client.h') 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 chat_rooms; std::map notifications; + // Contact/thread id caches + std::map thread_id_to_user_id; + std::map chat_id_to_hcontact; + std::map user_id_to_hcontact; + std::string get_newsfeed_type(); std::string get_server_type(); std::string get_privacy_type(); -- cgit v1.2.3