Use simplejson if present instead of the stdlib json module.

The simplejson parser drop-in compatible with the builtin python JSON
parser, but much faster. In particular, this makes operations like
reindexing quicker.
This commit is contained in:
Andrew Snare
2014-06-25 10:21:36 +02:00
committed by Honza Král
parent 7a1aafa0b3
commit 4d37a54c95
3 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -1,5 +1,8 @@
import logging
import json
try:
import simplejson as json
except ImportError:
import json
from ..exceptions import TransportError, HTTP_EXCEPTIONS
+4 -1
View File
@@ -1,5 +1,8 @@
import time
import json
try:
import simplejson as json
except ImportError:
import json
from ..exceptions import TransportError, ConnectionError, ImproperlyConfigured
from ..compat import urlencode
+4 -1
View File
@@ -1,4 +1,7 @@
import json
try:
import simplejson as json
except ImportError:
import json
from datetime import date, datetime
from decimal import Decimal