Skip to content

Commit a633d6f

Browse files
committed
Add comment about json encoder back
1 parent e23fa4d commit a633d6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

splunklib/searchcommands/internals.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ def _write_record(self, record):
669669
# We may be running under PyPy 2.5 which does not include the _json module
670670
_iterencode_json = JSONEncoder(separators=(',', ':')).iterencode
671671
else:
672+
# Creating _iterencode_json this way yields a two-fold performance improvement on Python 2.7.9 and 2.7.10
672673
from json.encoder import encode_basestring_ascii
673674

674675
@staticmethod

0 commit comments

Comments
 (0)