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
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
to v8-dev
Reply all
Reply to author
Forward
0 new messages