Groups
Groups
Sign in
Groups
Groups
v8-dev
Conversations
About
Send feedback
Help
Speedup for Uint8Array.from(jsArrayWithUint8Elements)
30 views
Skip to first unread message
Reve
unread,
Oct 6, 2025, 3:00:51 AM (13 days ago)
Oct 6
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to v8-dev
I'm writing a protobuf serializer
Here's some ideas for writing to a buffer that I have come up with:
https://github.com/js-benchmark-all/micro/blob/main/src/binary/serialize.case.ts
And benchmark results of each idea:
https://github.com/js-benchmark-all/micro/blob/main/results/binary/serialize.v8.txt
Is it possible to speed up any of the 1 pass ideas, for example by making Uint8Array.from() not copy the data from the built array?
Claudia
unread,
Oct 9, 2025, 8:31:12 AM (10 days ago)
Oct 9
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to v8-dev
The copy is required by spec:
https://tc39.es/ecma262/multipage/indexed-collections.html#sec-settypedarrayfromarraylike
Reply all
Reply to author
Forward
0 new messages