diff options
author | George Hazan <george.hazan@gmail.com> | 2014-11-06 21:40:38 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-11-06 21:40:38 +0000 |
commit | 3a7b275f52e4905cc9b8f4f5c83d5c64c5ec20c1 (patch) | |
tree | 9ea818ff8c020a1240f9d32c4568afca2dbe0608 /plugins/NewsAggregator/Src | |
parent | 448529a1b204ad9ee122760ed11165d778661eef (diff) |
doubles search algorithm optimized
git-svn-id: http://svn.miranda-ng.org/main/trunk@10920 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewsAggregator/Src')
-rw-r--r-- | plugins/NewsAggregator/Src/CheckFeed.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/NewsAggregator/Src/CheckFeed.cpp b/plugins/NewsAggregator/Src/CheckFeed.cpp index e2deb0f122..cff4873516 100644 --- a/plugins/NewsAggregator/Src/CheckFeed.cpp +++ b/plugins/NewsAggregator/Src/CheckFeed.cpp @@ -136,6 +136,10 @@ static void XmlToMsg(MCONTACT hContact, CMString &title, CMString &link, CMStrin olddbei.pBlob = pbBuffer;
db_event_get(hDbEvent, &olddbei);
+ // there's no need to look for the elder events
+ if (olddbei.timestamp < stamp)
+ break;
+
if (olddbei.cbBlob == cbOrigLen + 1 && !lstrcmpA((char*)olddbei.pBlob, pszTemp)) {
MesExist = true;
break;
|