Serhiy Storchaka added the comment:
New features can be only added to the default branch. True and False are not
global variables but keywords in Python 3. And in any case the json module is
accelerated by C implementation which much faster than any microoptimized
Python code.
--
nosy
New submission from Marian Horban:
It is possible to improve performance of json module encoder.
Since access to local variables is faster than to globals/builtins I propose to
use locals instead of globals.
Small test of such improvement:
>>> import timeit
>>> def flocal(name=False):
... f