unjs / unenv

🕊️ Convert javaScript code to be runtime agnostic
MIT License
348 stars 18 forks source link

Reduce size of Buffer polyfills #160

Open pi0 opened 6 months ago

pi0 commented 6 months ago

The Buffer polyfill we provided, is a much more compacted version of browserify Buffer that is used in most of the other implementations.

Although I have previously spend some time to optimize it, I belive it can be furhor more optimized in terms of both size and performance by migrating to more modern native APIs.

Steps:

(if you like to contribute, separate PR is welcome for each top-down ❤️ )