heckle icon indicating copy to clipboard operation
heckle copied to clipboard

Don't recompile unchanged files

Open 2016rshah opened this issue 9 years ago • 2 comments

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

2016rshah avatar Jul 31 '16 13:07 2016rshah

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

arvind-iyer avatar Aug 08 '16 09:08 arvind-iyer

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?

2016rshah avatar Aug 08 '16 18:08 2016rshah