Closed madejejej closed 2 years ago
This is great. Thank you for your work on this.
After merging, I've found that I've had to revert it to the previous state, as it's failing the test test_should_return_the_specified_number_of_passwords
.
Please check that the entire test suite is passing before generating a PR.
The current lookup method is a bit inefficient. For every lookup, it has to open a file, allocate a lot of memory and iterate over an Array.
The new method introduces two optimizations:
Benchmark: (note: I created a
benchmark
directory in the repo and not checked it in, so you might have to modify the file path to run it yourself)Results: