• Damien George's avatar
    py: Make qstr hash size configurable, defaults to 2 bytes. · c3bd9415
    Damien George authored
    This patch makes configurable, via MICROPY_QSTR_BYTES_IN_HASH, the
    number of bytes used for a qstr hash.  It was originally fixed at 2
    bytes, and now defaults to 2 bytes.  Setting it to 1 byte will save
    ROM and RAM at a small expense of hash collisions.