fake-useragent icon indicating copy to clipboard operation
fake-useragent copied to clipboard

UA.GetAllRandom() performance improvements

Open pymq opened this issue 4 years ago • 0 comments

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;

pymq avatar Dec 02 '19 22:12 pymq