Skip to content

Proposal: Replacing ICU with ztd.text or encoding_rs #45389

@anonrig

Description

@anonrig

I've been mainly working on the TextDecoder performance gains for the past couple of weeks. It seems that ICU, even though is required for v8 Intl, is slow for UTF-8 encoding & decoding.

I recommend either adding ztd.text or encoding_rs with C++ bindings as a dependency and improving the performance of the TextDecoder & TextEncoder which will improve a lot of applications worldwide.

Deno uses encoding_rs and Bun uses a custom implementation.

Some good references:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions