• bos's avatar
    encodeUtf8_2: a C-based encoding function · 2b68d6b8
    bos authored
    Not surprisingly, this is a lot faster than encodeUtf8_1 and the
    Builder-based rewrite under almost all circumstances.
    
    It's slower on tiny inputs (20%), but roughly twice as fast as
    encodeUtf8_1 on longer inputs.
    
    --HG--
    extra : amend_source : 093410e1295572be039d87a9c21e97d250c5f9f9
    2b68d6b8