Very slow performance
Opened this issue · 1 comments
iMerica commented
Description
Thanks for working on this project. I just wanted to note that there is lots of room for improvement in the performance department. A quick test:
start = time.time()
words = [r.get_random_word() for i in range(100)]
duration = end = time.time()
# duration is 30.501307725906372 seconds
Steps to Reproduce
- Call any random word method
- Observe how incredibly slow everything is.
Expected behavior
I understand the constraints of entropy, but I would expect something a bit faster than what I'm currently seeing.
Environment (please complete the following information):
- OS: Mac OS (2020 Macbook Pro)
- Python 3.9
serg06 commented
Incredibly slow.
import time
start = time.time()
words = [r.get_random_word() for i in range(100)]
end = time.time()
duration = end - start
print(duration)
Result:
39.74612474441528
OS: Windows 10
Python: 3.7
Hardware: 5950x and 980 Pro