阅读背景:

Python代码的性能随着线程而降低

来源:互联网 

I've written a working program in Python that basically parses a batch of binary files, extracting data into a data structure. Each file takes around a second to parse, which translates to hours for thousands of files. I've successfully implemented a threaded version of the batch parsing method with an adjustable number of threads. I tested the method on 100 files with a varying number of threads, timing each run. Here are the results (0 threads refers to my original, pre-threading code, 1 threads to the new version run with a single thread spawned).I've written a working program in Python that b




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: