-
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
nodejs/node
#45412Description
I see that undici
is mostly using Buffer.from(name).toString('utf8')
. This crosses the JS-C++ boundary 2 times. 1 for initializing, and 1 for toString
.
I recommend implementing a function like this:
Buffer.asString(name, encoding)
which returnsstring
Buffer.asStrings([first, second], encoding)
which returnsstring[]
styfle
Metadata
Metadata
Assignees
Labels
No labels