Skip to content
  • Damien George's avatar
    py: Adjust object repr C (30-bit stuffed float) to reduce code size. · 8b8d189b
    Damien George authored
    This patch adds/subtracts a constant from the 30-bit float representation
    so that str/qstr representations are favoured: they now have all the high
    bits set to zero.  This makes encoding/decoding qstr strings more
    efficient (and they are used more often than floats, which are now
    slightly less efficient to encode/decode).
    
    Saves about 300 bytes of code space on Thumb 2 arch.
    8b8d189b