The copy is required by spec: https://tc39.es/ecma262/multipage/indexed-collections.html#sec-settypedarrayfromarraylike
On Monday, October 6, 2025 at 12:00:51 AM UTC-7 Reve wrote: > 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? > -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/v8-dev/cca8cc61-86f3-4778-a971-fc0e4ac0de1en%40googlegroups.com.
