custom_app_context.verify performance decreased largely after upgrading to 1.6.5
Created originally on Bitbucket by Anonymous
Here is the code I used for testing:
#!python
from passlib.apps import custom_app_context as pwd_context
hash = pwd_context.encrypt("somepass")
for _ in range(1,100):
ok = pwd_context.verify("somepass", hash)
- Version 1.6.2: 31 seconds
- Version 1.6.5: 182 seconds
Also the 100 loop encrypt slowed down from 28 seconds to 182 seconds.