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

Intelligent Build Process: Update Modified Content Only #29

Open
766F6964 opened this issue Jul 14, 2023 · 0 comments
Open

Intelligent Build Process: Update Modified Content Only #29

766F6964 opened this issue Jul 14, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@766F6964
Copy link
Owner

766F6964 commented Jul 14, 2023

Summary:

Currently, every-time the script is executed, all blog posts are rebuilt (except the ones that have the ignore prefix).
While this is okay if the blog only has a couple of posts, the build times get pretty long when a user has hundreds of posts.
This is especially annoying if you just want to rebuild to if some of your changes look good on the page. Or if you fix a typo, and you need to wait minutes just for rebuilding. We can do better!

Suggestion:

We want to keep things simple, and not introduce a bunch of new dependencies.
All that is needed, is to create a "database", that maps the file-path of posts/pages to the hash of their content.
That way, we can check each post/page before building by looking up their hash in the database file. (If there were no changes since the last build, we don't have to rebuild the file).
This way, we would only rebuild files that got changed, increasing build times massively.
We also don't need to introduce an actual database, maybe a simple json/xml/ini file is enough. Will have to see.

@766F6964 766F6964 added the enhancement New feature or request label Jul 14, 2023
@766F6964 766F6964 self-assigned this Jul 14, 2023
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