Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Ultrajson (ujson) をインストールして、json のデコードを高速化できないかどうかを確認しました (文字列からオブジェクトへ)。ただし、使用方法の例は見当たりません。
通常のjsonを使用すると、
import json my_object = json.loads(my_string)
インポートステートメントを次のように変更しますimport ujson as json
import ujson as json
その後、プログラムの他の部分はそのままにしておくことができます。