Skip to content

Reduce false cache misses when evaluating prerequisites - #3097

Merged
davestgermain merged 1 commit into
masterfrom
dcs/paver-reqs
Mar 28, 2014
Merged

Reduce false cache misses when evaluating prerequisites#3097
davestgermain merged 1 commit into
masterfrom
dcs/paver-reqs

Conversation

@davestgermain

Copy link
Copy Markdown
Contributor

The previous function was building a hash of the list of every single file in the site-packages directory, effectively making every execution a cache-miss and slowing down server startup. I think it's reasonable to hash the contents of the requirements files and just the modification times of the modules under site-packages (even that is probably not necessary)

@singingwolfboy @wedaly @cpennington

@wedaly

wedaly commented Mar 28, 2014

Copy link
Copy Markdown
Contributor

Makes sense. Please update the docstring for compute_fingerprint, then 👍

@singingwolfboy

Copy link
Copy Markdown
Contributor

👍

davestgermain pushed a commit that referenced this pull request Mar 28, 2014
Reduce false cache misses when evaluating prerequisites
@davestgermain
davestgermain merged commit 3e9d1b3 into master Mar 28, 2014
@davestgermain
davestgermain deleted the dcs/paver-reqs branch March 28, 2014 13:40
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.

3 participants