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

Speed up site generation #6

Merged
merged 6 commits into from Jul 9, 2015
Merged

Speed up site generation #6

merged 6 commits into from Jul 9, 2015

Conversation

nxfifteen
Copy link

Attempted to speed up site building by caching vim html output in separate file.

During future builds these file are queried before executing Vim command.

Filename are generated by hashing all variable input to vimHighlight, so if the codeblock is changed or updated the hash changes and Vim is executed on the new block.

Build time for my site, nxfifteen.me.uk, with 96 separate codeblocks has been decreased from 5-6 minutes to less than 1

Vim output is stored in a cache file, the name of which is taken from a hash of the input arguments to vimHighlight.
During future generates these cache files are re-read instead of invoking vim again
ppwwyyxx added a commit that referenced this pull request Jul 9, 2015
Speed up site generation
@ppwwyyxx ppwwyyxx merged commit 7d0e3f4 into ppwwyyxx:master Jul 9, 2015
@ppwwyyxx
Copy link
Owner

ppwwyyxx commented Jul 9, 2015

Thanks for your contribution! This is really helpful.
BTW, your site looks great.

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

Successfully merging this pull request may close these issues.

None yet

2 participants