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

Feature request: only reprocess modified files with --autoreload #2219

Closed
gbrener opened this issue Oct 3, 2017 · 5 comments
Closed

Feature request: only reprocess modified files with --autoreload #2219

gbrener opened this issue Oct 3, 2017 · 5 comments

Comments

@gbrener
Copy link

gbrener commented Oct 3, 2017

Pelican's --autoreload mode currently reprocesses every file, regardless of how many were modified. Because many use this feature for interactive editing - where usually only one file is modified at a time - a significant speed boost could be gained if Pelican only reprocessed the modified file(s). One potential approach for this is in #2171.

@ingwinlu
Copy link
Contributor

ingwinlu commented Oct 5, 2017 via email

@gbrener
Copy link
Author

gbrener commented Oct 14, 2017

Sounds like someone was having a bad day. I hope things get easier for you.

It turned out to be less time-consuming to port my site to Hugo, which already includes this feature. Feel free to re-open this issue if you think someone else will find it helpful.

@gbrener gbrener closed this as completed Oct 14, 2017
@ingwinlu
Copy link
Contributor

Hugo is great as a more general static site generator than pelican. However that particular feature is not supported by them afaik gohugoio/hugo#1643 or https://stackoverflow.com/questions/34714442/hugo-incremental-builds-is-there-an-undocumented-switch-somewhere (yet).

@gbrener
Copy link
Author

gbrener commented Oct 15, 2017

Great to see that they take this issue seriously and are actively working on it. Hugo is so fast that I assumed that's what they were already doing. I was really asking for "fast interactive feedback while editing" which is what they provide, (surprisingly) without this feature.

@ChrisAichinger
Copy link

For anyone else finding this issue, check out Reading only modified content in the settings documentation. Enabling caching (CACHE_CONTENT = LOAD_CONTENT_CACHE = True) brought render times for my ~200 page site down to 2 seconds in autoreload mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants