Read large file in parallel?

后端 未结 6 1893
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 04:50

I have a large file which I need to read in and make a dictionary from. I would like this to be as fast as possible. However my code in python is too slow. Here is a minim

6条回答
  •  感情败类
    2020-12-05 05:25

    More cardinal solution for slow dictionary appending: replace the dictionary with array of pairs of strings. Fill it and then sort.

提交回复
热议问题