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

Check if it worth to save the feed as json (instead of XML) #9

Open
yadomi opened this issue Jul 14, 2024 · 0 comments
Open

Check if it worth to save the feed as json (instead of XML) #9

yadomi opened this issue Jul 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@yadomi
Copy link
Owner

yadomi commented Jul 14, 2024

Currently:

  • The feed is downloaded as XML
  • the XML is parsed to js object
  • the js object is stringified to JSON and saved to file

Then json file is then reparsed (via JSON.parse) when building the static page.

Maybe it could be less cpu consuming to save the XML as this and parse it using the xml module when building the feed.

@yadomi yadomi added the enhancement New feature or request label Jul 14, 2024
@yadomi yadomi changed the title Check if it worth to save the feed as json Check if it worth to save the feed as json (instead of XML) Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant