UIKit0 / newsbeuter

Automatically exported from code.google.com/p/newsbeuter
0 stars 0 forks source link

TinyTinyRSS synchronisation causes long delays in reading articles #304

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set up newsbeuter to use Tiny Tiny RSS as a feed source
2. Browse to a new article and click enter.
3. Wait for the article to appear.

What is the expected output? What do you see instead?
Expected, or wished-for, output is that the article would appear instantly as 
if you were using newsbeuter in standalone mode without synchronising with a 
remote install.

What version of the product are you using? On what operating system?
Newsbeuter 2.5 under Arch Linux. 

Please provide any additional information below.

This feels like newsbeuter is not caching the article body, but is instead 
retrieving it when the article is opened -- either from the Tiny Tiny RSS 
install or from the original site.

I'm not sure if it's a limitation with Tiny Tiny RSS or newsbeuter, but it 
would be far better if newsbeuter could cache the article body directly on the 
local machine, and synchronise the read/unread status to the Tiny Tiny RSS 
install.

Depending on network conditions and the feed itself, this can result in 
articles taking several seconds to open, which is significant when scrolling 
through a large number of feeds.

Original issue reported on code.google.com by joss.wri...@gmail.com on 7 Oct 2012 at 8:44

GoogleCodeExporter commented 9 years ago
I've spent a bit longer poking at this, and now understand it.

The issue comes because the code to show the article (in 
itemlist_formaction.cpp, under the OP_OPEN case statement) comes after the call 
to mark the item as read. As marking the item as read involves an operation on 
the remote side, this can take a few seconds.

It looks like the solution is to make the mark_as_read function for TinyTinyRSS 
occur in a thread. There's already a template for this kind of thing, due to 
the feed update threads, so I might be able to do it quite quickly.

I assume that this is true for the Google Reader synchronisation, but I haven't 
checked.

Original comment by joss.wri...@gmail.com on 7 Oct 2012 at 10:22

GoogleCodeExporter commented 9 years ago
Just to note that I've implemented a threaded version of the code to mark 
articles as read, and have submitted it.

Original comment by joss.wri...@gmail.com on 12 Oct 2012 at 9:53