From 48645d6b81853f750c30ab9ed9af36163066969a Mon Sep 17 00:00:00 2001
From: Andrea Diamantini <adjam7@gmail.com>
Date: Thu, 15 Nov 2012 22:46:05 +0100
Subject: Clean up url suggestions, step 2

Do NOT qsort history results letting urlbar being A LOT
more responsive.
Can we live without (q)sort results??
---
 src/urlbar/urlsuggester.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/urlbar/urlsuggester.cpp b/src/urlbar/urlsuggester.cpp
index bc0ad280..6b9ccb13 100644
--- a/src/urlbar/urlsuggester.cpp
+++ b/src/urlbar/urlsuggester.cpp
@@ -326,7 +326,10 @@ void UrlSuggester::computeWebSearches()
 void UrlSuggester::computeHistory()
 {
     QList<HistoryItem> found = HistoryManager::self()->find(_typedString);
-    qSort(found.begin(), found.end(), isHistoryItemRelevant);
+
+    // FIXME: profiling computeHistory, this seems too much expensive (around 1 second for)
+    // Can we live without (q)sort results???
+    // qSort(found.begin(), found.end(), isHistoryItemRelevant);
 
     Q_FOREACH(const HistoryItem & i, found)
     {
-- 
cgit v1.2.1