pencode: Send booleans as dedicated type codes, cache in backrefs
pencode: Send booleans as dedicated type codes, cache in backrefs

pencode: Send booleans as dedicated type codes, cache in backrefs

./benchmark_pencode.py
.....................
pencode: Mean +- std dev: 70.9 ms +- 1.0 ms

Small CPU saving, but also reduces encoded size

Before:

>>> from benchmark_pencode import *
>>> len(pencode(setup()))
691008

After:

>>> from benchmark_pencode import *
>>> len(pencode(setup()))
683015

lordmauve/chopsticks,lordmauve/chopsticks