Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - Simultaneous refresh of feeds #64

Open
Xmasjos opened this issue Apr 19, 2021 · 3 comments
Open

Feature request - Simultaneous refresh of feeds #64

Xmasjos opened this issue Apr 19, 2021 · 3 comments

Comments

@Xmasjos
Copy link

Xmasjos commented Apr 19, 2021

GPodder recently added a feature for simultaneous refresh of podcast feeds.
It would be quite nice to have a similar feature in tidings, but I have no idea about how to implement it (haven't done any QML / C++ development since my Symbian days).

@poetaster
Copy link
Owner

I'll look at this

from concurrent.futures import ThreadPoolExecutor

@poetaster
Copy link
Owner

Ok, it looks like there is already primitive async setup in place with

BackgroundWorker.qml (used by NewsBlendModel.qml). It seems to be queuing url fetches with a slight (30ms) offset.

But there are simultaneous actions like removing read items, updating stats, AND adding ListItems that happen while loading. So it looks like it is happening in parallel but not efficiently. Looks like it needs rebuilding of the
NewsBlendModel to, possibly, defer some things.

But I'm not certain yet. I also need to add debug flags since the app is constantly spewing debug at the console.

@poetaster
Copy link
Owner

poetaster commented Jun 4, 2021

Nope. I'm wrong. It's serial. The BackgroundWorker is used for feed Items. On it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants