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 AttributesModified outdatedness rule #1128

Merged
merged 1 commit into from Mar 20, 2017

Conversation

denisdefreyne
Copy link
Member

@denisdefreyne denisdefreyne commented Mar 19, 2017

This speeds up AttributesModified by not repeating the same check in the case of items with multiple reps.

Example on nanoc.ws:

       Nanoc::Int::OutdatednessRules::AttributesModified#apply │   91    273   25.0%

Hit rate of 25% which isn’t too high, but it is useful.

@denisdefreyne
Copy link
Member Author

Patch coverage check fails because of an unreachable code patch which deliberately raises an exception.

@denisdefreyne denisdefreyne merged commit 9a127e6 into master Mar 20, 2017
@denisdefreyne denisdefreyne deleted the faster-attributes-modified branch March 20, 2017 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant