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

Don't recompile unchanged files #10

Open
2016rshah opened this issue Jul 31, 2016 · 2 comments
Open

Don't recompile unchanged files #10

2016rshah opened this issue Jul 31, 2016 · 2 comments

Comments

@2016rshah
Copy link
Owner

This isn't an issue for most blogs, but perhaps if you have thousands and thousands of posts, the process of compiling every single markdown file into HTML even if it hasn't changed won't be very efficient. Perhaps look into a way to check the diff for a file or something to only recompile changed files when you run heckle build to make the program faster

@arvind-iyer
Copy link

Probably not the best way but wouldn't saving the timestamp of the last heckle build make it possible? We can then use Posix.Files to get the time a file was last modified and only compile the ones that were modified after the last build

@2016rshah
Copy link
Owner Author

Yeah but we would need to save the timestamp for the last time someone ran heckle build in order to do so.

I've been considering adding a a configuration file to keep track of this and other user preferences (like Markdown/LaTeX/both) but I'm hesitant to add another file for things that aren't that important. Which is more valuable, simplicity or configurability/features?

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

No branches or pull requests

2 participants