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

mark-feed-read: Only mark visible items as read #1558

Merged
merged 1 commit into from Mar 29, 2021

Conversation

dennisschagt
Copy link
Member

Fixes #1364.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 58.843% when pulling 5163927 on dennisschagt:bugfix/issue-1364 into 3cd079b on newsboat:master.

Copy link
Member

@Minoru Minoru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍

@Minoru Minoru merged commit f7d8ab4 into newsboat:master Mar 29, 2021
@dennisschagt dennisschagt deleted the bugfix/issue-1364 branch March 29, 2021 18:29
@Minoru Minoru added this to the 2.24 milestone Jun 20, 2021
Minoru added a commit that referenced this pull request Jun 27, 2021
5163927 (PR #1558) changed
mark-all-read to mark each item individually. That made mark-all-read
aware of the filters, but also made it slower. This was especially
noticeable with remote APIs, where mark-read latency is high.

We can't speed it up in the general case, but when there is no filter,
we can fall back onto the faster mark_all_read() method which marks the
entire feed in one go. I tested that this new code is indeed faster and
doesn't re-introduce #1364.

Reported by Oneiric on IRC.
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

Successfully merging this pull request may close these issues.

mark-feed-read when filter is applied should only mark visible items read
3 participants