Open
Description
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.