Skip to content

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

Merged
Ch4s3 merged 1 commit into
Sorcery:masterfrom
palkan:patch-1
Nov 28, 2017
Merged

Ch4s3 merged 1 commit into
Sorcery:masterfrom
palkan:patch-1

Conversation

@palkan

@palkan palkan commented Sep 6, 2017

Copy link
Copy Markdown
Contributor

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

Ch4s3 commented Nov 28, 2017

Copy link
Copy Markdown
Contributor

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