Skip to content

Conversation

@Apprentice-Alchemist
Copy link
Contributor

This drastically reduces the memory usage of Bytes.getString.

TextDecoder and TextEncoder are widely available in browsers and also supported by runtimes such as node.js, Deno and Bun.

see #12350

@kLabz
Copy link
Contributor

kLabz commented Sep 15, 2025

See also: https://caniuse.com/textencoder

@kLabz
Copy link
Contributor

kLabz commented Nov 17, 2025

Seems like nobody is against doing this ~

Thanks!

@kLabz kLabz merged commit 9d2351b into HaxeFoundation:development Nov 17, 2025
47 checks passed
@Apprentice-Alchemist Apprentice-Alchemist deleted the js-bytes-faster-string-conversion branch November 17, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants