-
Notifications
You must be signed in to change notification settings - Fork 996
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
scripts/sitemaps.js is slow #555
Comments
Definitely not a bad idea, I don't have any s3 account or whatever, so feel free. All you need is the api key which is on netlify. You can crop it daily or weekly and it will be fine |
Do you know how large the files are? I can probably just throw them onto my server under https://nightly.yarnpkg.com/ somewhere. |
I ran the script locally and it's:
So it's 255MB on disk This can also be gzipped, either by the server (that's the case on netlify now IIRC), or by the script. I didn't do that now, because it would take a while, but I'm pretty sure it will get a very significant improvement by doing that, there must be lots of repetition. |
This is one of the slowest parts of building the site:
@Haroenv - Could we somehow speed this up, or otherwise cache the sitemaps so they're only regenerated every so often? I wonder if we could store the sitemaps somewhere (perhaps some sort of blob storage like S3) and regenerate them via a cronjob rather than every time the site is deployed.
The text was updated successfully, but these errors were encountered: