Closed SomberNight closed 3 years ago
Are we that tight on bandwidth? It seems some tests need updating too.
It seems some tests need updating too.
I've updated some; let's see now.
Are we that tight on bandwidth?
Well, no, of course not; if we were we should not use hex strings. However changing to raw bytes would be much more work. This PR makes an easy and minor backwards compatible change that still saves a few bytes on every request (so probably 1-2% of bandwidth overall).
This saves a few bytes of bandwidth at virtually no cost.
see https://github.com/python/cpython/blob/f6c6b5821bff815bdc810de53992fd1fbdb2edd4/Lib/json/__init__.py#L148-L151