jsonify() runs significantly faster when it does not have to prettify, especially in Python 3.6. This is important for environments like Pong-v0, where jsonify() can be a significant bottleneck.
Here are some performance comparisons when I capture 6 frames from Pong-v0:
jsonify() runs significantly faster when it does not have to prettify, especially in Python 3.6. This is important for environments like Pong-v0, where jsonify() can be a significant bottleneck.
Here are some performance comparisons when I capture 6 frames from Pong-v0:
Reference: http://stackoverflow.com/questions/37931927/why-is-flasks-jsonify-method-slow