#36190: High memory usage of CommonPasswordValidator
---------------------------------+-----------------------------------------
     Reporter:  Michel Le Bihan  |                     Type:  Uncategorized
       Status:  new              |                Component:  Uncategorized
      Version:  5.1              |                 Severity:  Normal
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+-----------------------------------------
 Hello,

 I noticed that `CommonPasswordValidator` has a very high memory usage.
 Loading the `piotrcki-wordlist-top10m.txt` list that has `9872702` entries
 causes a 755M usage even though the disk size of the list is only 87M.
 Since `CommonPasswordValidator` basically only needs to check for
 membership, I think that using a variant of a bloom filter would be much
 better than using a hash table (`set()`).
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36190>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701950949f384-18e842ef-f644-4be8-bfd2-0a71f6ae6040-000000%40eu-central-1.amazonses.com.

Reply via email to