vaibhavsingh97/random-word

God it is slow....so so slow

cyberfox1 opened this issue · 2 comments

How can it be so slow to generate a random word? Is it downloading word list from internet every time?

Well, it does make a call to the API backend positioned somewhere in the world, randomly selecting a word from a dictionary containing thousands of them and then returning it back. So, yeah the small latency is expected everytime when a call is made to the backend and could be even longer if the network speed is slow.

As explained by @RapidCompiler, this package call API which can add small delay while requesting a random word.