Skip to content

Limit the maximum number of feed items when parsing #199

Open
@imirzadeh

Description

@imirzadeh

Motivations

1- Some feeds are not well-maintained, especially podcasts like NYTimes Daily or this one. In those feeds, usually all/most of the history (hundreds of items) is in the feed. This leads to a very long parsing time.

2- Usually, people use RSS parser libraries to check the latest news and don't necessarily need all the items to be parsed. Given that gofeed parses xml using the pull method, it can stop processing at certain points and save time and compute.

Suggestion

For the reasons explained above, I think we can add an optional ParseConfig object to the Parser to fetch the posts faster.
To make things backward compatible, we can add a SetConfig method that users can explicitly call to change options.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions