summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/connection.cpp
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/connection.cpp
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/connection.cpp')
-rw-r--r--protocols/FacebookRM/src/connection.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp
index 3372d671d2..1582056033 100644
--- a/protocols/FacebookRM/src/connection.cpp
+++ b/protocols/FacebookRM/src/connection.cpp
@@ -63,6 +63,13 @@ void FacebookProto::ChangeStatus(void*)
facy.pages.clear();
facy.typers.clear();
+ // Clear thread/user id caches?
+ /* Right now it's commented out because it's not really needed to erase - maybe only when user changes login/pass in same account, but even then it shouldn't cause problems
+ facy.thread_id_to_user_id.clear();
+ facy.chat_id_to_hcontact.clear();
+ facy.user_id_to_hcontact.clear();
+ */
+
// Close connection handle
if (facy.hFcbCon)
Netlib_CloseHandle(facy.hFcbCon);