News for hackers. Stuff that matters.

macieklamberski

I was in the same situation — using rss-parser, but eventually faced with some issues.

It also turned out, its performance is not that good. In benchmarks, it's 4-5x slower. In my case, switching to Feedsmith almost doubled the overall parsing speed. This is including the fetching of feeds, which is the main bottleneck.

PS. Great projects, I know and follow both. :)

Hard to say, as I'm not very familiar with Python. However, from what I understand, JavaScript is generally faster (don't quote me on that).

This is quite an interesting idea — benchmarking feed parsing libraries in different languages. I'll give it some thought.

Thanks! For now I have some benchmarks for parsing, as this has been my main focus regarding performance. It consistently ranks in the top 2 with the caveat that other libs do not support most of the feed namespaces that Feedsmith does.

Here are the results: https://github.com/macieklamberski/feedsmith/blob/main/bench....

Show HN: Feedsmith — Fast parser & generator for RSS, Atom, OPML feed namespaces

https://github.com/macieklamberski/feedsmith

Hi HN! While working on a project that involves frequently parsing a lot of feeds, I needed a fast JavaScript-based parser to extract specific fields from feed namespaces. Existing Node packages were either too slow or merged all feed formats, losing namespace information. So I decided to write it myself and created this NPM package with a simple API.Feedsmith supports all feed formats and many...

( Read More... | 9 comments | 22 points | on HN )