fake-useragent
fake-useragent copied to clipboard
UA.GetAllRandom() performance improvements
Thanks for this library!
I noticed two drawbacks and prepared a fix, please consider this for merging.
- remove unnecessary slice allocations on each UA.GetAllRandom() call (about 3000 length slice on average);
- add RWMutex to prevent data races;