nodejs / performance

Node.js team focusing on performance
MIT License
377 stars 7 forks source link

Adding a fast path for TextDecoder latin1 #178

Open anonrig opened 2 months ago

anonrig commented 2 months ago

Latin1 still uses ICU, which is extremely slow. We can add a fast path, just like utf8 and make it extremely fast.

Ref: https://github.com/nodejs/node/blob/main/lib/internal/encoding.js#L424

cc @RafaelGSS

CarlosEduR commented 2 months ago

Nice

CarlosEduR commented 2 months ago

@anonrig could you guide me a little bit on this and/or list me some PRs as reference? Just cloned the repo and taking a look...