#36190: High memory usage of CommonPasswordValidator
-------------------------------------+-------------------------------------
Reporter: Michel Le Bihan | Owner: Priyanshu
Type: | Singh Panda
Cleanup/optimization | Status: closed
Component: contrib.auth | Version: dev
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage: Accepted
CommonPasswordValidator |
Has patch: 0 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):
* resolution: => wontfix
* status: assigned => closed
Comment:
There is often a trade-off between memory usage and performance.
For `CommonPasswordValidator` to compromise on accuracy via a bloom filter
would be backwards incompatible, and therefore, not acceptable without a
strong consensus from the community.
In Django, you can write your own password validators. In this case, a
custom very large file is being used, and so it might make sense to use a
custom validator that uses a bloom filter (to deal with the very large
file). This custom validator could be provided by a third-party package.
Anyone is welcome to discuss this further on the
[
https://forum.djangoproject.com/c/internals/5 Django forum].
Note that any PR to improve the current state should not compromise on
accuracy and needs to include performance and memory bench-marking.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36190#comment:13>