polyglot icon indicating copy to clipboard operation
polyglot copied to clipboard

question about the speed

Open septfish opened this issue 4 years ago • 1 comments

I want to increase the detection speed. I used multi-threading, but found that the speed is slower. How to increase the speed? Or how to properly parallelize the detection text

septfish avatar Apr 20 '20 07:04 septfish

Did you try to use multiprocessing ?

In python thread are generally a bad idea, because of the GIL (Global Interpreter Lock). You're best bet is generally with multi process.

alexgarel avatar Apr 20 '20 08:04 alexgarel