Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
[patch] replace requests complexjson with ujson if it is available (T…
Browse files Browse the repository at this point in the history
…his affects the whole runtime meaning assuming the response isn't unsupported it should give a significant boost to requests performance.
  • Loading branch information
Drapersniper committed Dec 20, 2021
1 parent 320f785 commit 1ee15b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qBitrr/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
import qBitrr.logger # noqa

try:
import requests
import ujson

requests.models.complexjson = ujson
except ImportError:
pass

0 comments on commit 1ee15b5

Please sign in to comment.