LeechCore icon indicating copy to clipboard operation
LeechCore copied to clipboard

Performance regression on linux due to thread suspend in usleep()

Open ko1N opened this issue 5 years ago • 0 comments

On Windows LeechCore is using a custom usleep function which does not cause a thread suspend. On Linux the regular usleep() function is used which causes a thread suspend and doesn't guarantee to return instantly after the amount of time has passed.

Edit: after further testing the performance improvement seemed to be just a few % but still valuable :+1:

ko1N avatar Dec 27 '20 17:12 ko1N