Skip to content

Poor performance (and excessive garbage collection) in utf8/utf16/utf32 conversion functions #10959

@ScottPJones

Description

@ScottPJones

These all tend to be rather slow because they create an empty array, and append to it 1 character at a time... also, instead of having specific converters for things like:
ASCIIString -> UTF16String, UTF8String -> UTF16String, UTF32String -> UTF16String
ASCIIString -> UTF32String, UTF8String -> UTF32String, UTF16String -> UTF32String
these are handled by a single generic function (encode16 for UTF16String)

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceMust go fasterunicodeRelated to unicode characters and encodings

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions