Python 2.6 JSON decoding performance

后端 未结 7 1319
春和景丽
春和景丽 2020-11-30 05:30

I\'m using the json module in Python 2.6 to load and decode JSON files. However I\'m currently getting slower than expected performance. I\'m using a test case

7条回答
  •  佛祖请我去吃肉
    2020-11-30 06:03

    Even though _json is available, I've noticed json decoding is very slow on CPython 2.6.6. I haven't compared with other implementations, but I've switched to string manipulation when inside performance-critical loops.

提交回复
热议问题