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

Set user.stretches to 1 in test env by default #81

Merged
merged 1 commit into from
Nov 28, 2017
Merged

Set user.stretches to 1 in test env by default #81

merged 1 commit into from
Nov 28, 2017

Conversation

palkan
Copy link
Contributor

@palkan palkan commented Sep 6, 2017

Most users use BCrypt and don't change defaults, which means that the default value would be 10. That makes tests run slowly.

Setting the number of stretches in test env to 1 can decrease the test suite up to 2x times (although BCrypt minimal cost is 4, we can use 1 for SHA algorithms).

Most users use BCrypt and don't change defaults, which means that the default value would be 10. That makes tests run slowly.

Setting the number of stretches in test env to 1 can decrease the test suite up to 2x times (although BCrypt minimal cost is 4, we can use 1 for SHA algorithms).
@Ch4s3 Ch4s3 merged commit 958d62d into Sorcery:master Nov 28, 2017
@Ch4s3
Copy link
Contributor

Ch4s3 commented Nov 28, 2017

I agree, this is a nice change.

ebihara99999 pushed a commit to ebihara99999/sorcery that referenced this pull request Mar 10, 2018
Most users use BCrypt and don't change defaults, which means that the default value would be 10. That makes tests run slowly.

Setting the number of stretches in test env to 1 can decrease the test suite up to 2x times (although BCrypt minimal cost is 4, we can use 1 for SHA algorithms).
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.

2 participants