Closed connor4312 closed 5 months ago
Latest commit: 2f5fd05b201b40f173bc79516a24311d71fa4f18
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
proxy-agents | ✅ Ready (Inspect) | Visit Preview | Jan 6, 2024 9:30pm |
Thanks!
I saw in https://github.com/microsoft/vscode-js-debug/issues/1911 that base64 decoding of a data URI was taking a bit of time.
This PR feature-detects the presence of a global
Buffer
to use native decoding when running in Node.js, which is about 25x faster on a 10MB data URI than the JS implementation in the library.I have a bit of a hack in order to test both paths when running tests, happy to change it if desired :)