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

Blog compilation is very slow #50

Open
piperhaywood opened this issue Nov 1, 2019 · 2 comments
Open

Blog compilation is very slow #50

piperhaywood opened this issue Nov 1, 2019 · 2 comments
Assignees
Labels
type: enhancement 🌱 New feature or request

Comments

@piperhaywood
Copy link
Collaborator

Compilation currently takes 5-9 seconds for 22 files, which is crazy long. This is probably because it tries to recompile the Arena blocks every time. Consider adding a blog-specific server setting that could be used for writing and omits the Arena blocks.

@piperhaywood piperhaywood added status: blocked 🚧 A roadblock somewhere, probably in another issue type: enhancement 🌱 New feature or request labels Nov 4, 2019
@piperhaywood piperhaywood added this to the v?? – Future milestone Nov 4, 2019
@piperhaywood
Copy link
Collaborator Author

piperhaywood commented Nov 4, 2019

@GemCopeland Flagging you on this so that you’re aware.

The build time is taking a very long time right now. It seems like this is partly due to it taking a while to get data from the Arena API.

The Eleventy folks are thinking about adding an --incremental flag that would mean that only the changed parts of the site would be rebuilt each time (see 11ty/eleventy#108). I’ve also suggested that we be allowed to exclude files within the config file, which would be another workaround.

In the meantime, the best thing to do is temporarily add these lines to the .eleventyignore file when working locally to avoid compiling the Arena data:

src/pages/thinking.md
src/_includes/layouts/thinking.njk
src/_data/arena.js

Leaving this open for awareness and since Eleventy might fix this in the future.

@piperhaywood piperhaywood changed the title Add a blog-specific server setting Blog compilation is very slow Nov 4, 2019
@piperhaywood
Copy link
Collaborator Author

@GemCopeland So @sambaldwin has recommended eleventy-fetch to speed things up, apparently it’s working really well for him! Might mean moving the data gathering out of /_data/arena.js and in to the Eleventy file, not sure, but could be worthwhile!

@GemCopeland GemCopeland removed the status: blocked 🚧 A roadblock somewhere, probably in another issue label Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement 🌱 New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants