Summary: | Akregator doesn't do "idle". Storage backend wakes up every 3 seconds :-(. | ||
---|---|---|---|
Product: | [Applications] akregator | Reporter: | Alan Jenkins <aj504> |
Component: | metakit plugin | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Fix storage backend polling
Improved patch using QTimer::singleShot() Corrected version which takes feed storage changes into account |
Description
Alan Jenkins
2007-10-01 22:37:08 UTC
Created attachment 21733 [details]
Fix storage backend polling
This can be tested by comparing powertop output before and after. Before,
powertop should show ~0.4 wakeups/s on idle. After, it should hardly show up
at all (when idle).
Note. "idle" includes "not fetching feeds". I.e. this wouldn't make a
difference if, like me, you had a dead feed that akregator keeps trying to
refetch.
Created attachment 21751 [details]
Improved patch using QTimer::singleShot()
I changed your patch a bit, it now uses QTimer::singleShot() instead of an own
QTimer object, moves markDirty() to private section of the class. (Is there any
reason not to do so?)
Looks fine to me. I was slightly puzzled by the lack of existing private methods so I put it next to slotCommit(). (Perhaps it's not usual to declare a slot as private?) Thanks for looking at it! P.S. I wonder how many people would take it the wrong way if I said I'd posted a patch on the "akregator haxx0rz" website :-). Created attachment 21761 [details]
Corrected version which takes feed storage changes into account
SVN commit 721755 by ewoerner: Fix storage backend waking up CPU every 3 seconds, original patch by Alan Jenkins, bump version number BUG: 150389 M +9 -1 ChangeLog M +1 -1 src/aboutdata.h M +31 -21 src/mk4storage/feedstoragemk4impl.cpp M +1 -0 src/mk4storage/feedstoragemk4impl.h M +17 -14 src/mk4storage/storagemk4impl.cpp M +2 -0 src/mk4storage/storagemk4impl.h WebSVN link: http://websvn.kde.org/?view=rev&revision=721755 |