-
Notifications
You must be signed in to change notification settings - Fork 347
High load when showing History or Bookmarks menu #1679
Comments
That's known issue when you have a LOT of bookmarks. |
Anyway this menu opens slower, than window "Organize Bookmarks". 2015-10-02 23:27 GMT+08:00 David Rosca [email protected]:
|
Turn the library into a standalone binary. The library would handle bookmarks, history (read only) and web feeds (atom, rdf, rss), QupZilla would handle browsing history, maybe via library, as it currently does. If Mozilla would have done this with their own fancy places manager, they probably would have more audiences by now. |
@GreenLunar |
I don't know, but if it is not manageable on portable devices, then perhaps using a local bookmarks/history database(s) would suffice. Personally, I am biased in this concern. I have been using Firefox solely as a bookmark manager, and I have asked for a somewhat standalone bookmarks manager on another project bookieio/Bookie#550 |
I'm encountering the very same problem on my intel i7-3740QM / Samsung 830 SSD with 162 bookmarks. I hope this isn't "a LOT" ;-) |
I SIGINTed QupZilla running in a gdb session while it was hanging/busy after opening the bookmarks menu:
|
@OlafLostViking Can you please run Tools -> Clear Recent History -> Optimize database and try again? |
I already tried a manual vacuum of the database, which didn't help. Your proposed database optimization via QupZilla reduced the database size further from 50 MiB to 40 MiB but didn't bring any relevant changes, either. So I deleted the complete history and optimized the database down to 30 KiB. Now the bookmarks menu opens instantaneously. (I made a backup of the database as I'd prefer to keep the history - in case there's another solution in the end ;). ) |
Can you try with this patch, just to make sure it is due to icons: diff --git a/src/lib/bookmarks/bookmarkitem.cpp b/src/lib/bookmarks/bookmarkitem.cpp
index f3c4b01..a6d08ef 100644
--- a/src/lib/bookmarks/bookmarkitem.cpp
+++ b/src/lib/bookmarks/bookmarkitem.cpp
@@ -78,7 +78,7 @@ QIcon BookmarkItem::icon()
switch (m_type) {
case Url:
if (m_iconTime.isNull() || m_iconTime.elapsed() > iconCacheTime) {
- m_icon = IconProvider::iconForUrl(m_url);
+// m_icon = IconProvider::iconForUrl(m_url);
m_iconTime.restart();
}
return m_icon; |
I will try it later this day, if you still want me to do it; but I just deleted everything from the |
It would help if you can test this patch with your old browsedata.db (with all the history and icons), thanks. |
Ah, I managed to access my "compile capable" ;-) machine earlier and I can confirm that your little patch mentioned above fixes/circumvents the problem. |
@OlafLostViking Can you please try it now with |
Looks good, thanks. The very first load I had a warning on the console, though. Unfortunately, I cannot reproduce it anymore. But I'll post it anyway to have it documented somewhere:
|
@OlafLostViking Please report if you get this crash again. |
Displaying the "History" or "Bookmarks" menu takes a few seconds and a high load on the CPU on my old netbook.
Qupzilla 1.8.6
WebKit 538.1
Qt 5.4.1
Fedora 21
The text was updated successfully, but these errors were encountered: