cboettig / labnotebook

:notebook: Source code and version history for my online lab notebook
http://www.carlboettiger.info
Creative Commons Zero v1.0 Universal
99 stars 61 forks source link

git plugin should not re-initialize for each page #101

Closed cboettig closed 11 years ago

cboettig commented 11 years ago

Consider following the ga-analytics approach to allow a single call to the git plugin that obtains the dates for all pages, and then simply read in the dates from a file for a filter. Should be faster?

At least add some optional puts system.time or some such into the plugins to see where Jekyll is spending the most time compiling.

cboettig commented 11 years ago

The ridiculous number of calls to git_mod and git_sha (each page, the former multiple times) seems responsible for this. The GA approach with a generator that stored the data (preferably amending the post metadata directly, a la raw_content plugin, is needed.