Re: [whatwg/encoding] TextEncoder and TextDecoder performance concern around all libraries / runtimes (Issue #343)

WebReflection left a comment (whatwg/encoding#343)

this is a very simple scenario where you can see (plugged in) TextEncoder based variant (and TextDecoder) in cbor-x, when it comes to not ASCII chars is always way slower and it's already weird to find that out ... JS implementations faster than native APIs ... but then try to unplug your laptop and check again results ... JS user-land degrades a lot in there, not so native APIs ... yet this is an issue nobody can state is not existent or not real!

The page shows nothing, you better open a tab, open console, then only after reach this Code Pen to see results: https://codepen.io/WebReflection/full/OPJzNyZ

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/issues/343#issuecomment-2725568403
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/encoding/issues/343/2725568403@github.com>

Received on Friday, 14 March 2025 19:25:40 UTC