improve performance of ByteData #16512
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-obsolete
Closed as the reported issue is no longer relevant
library-typed-data
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by @tatumizer
processor Core i7 2.7Ghz, Windows 64
single call to ByteData.setInt16 takes 57 nanoseconds, same with setInt32 - 85 nanoseconds.
For comparison, setting element a[i] in Unit16List takes 1.24 nanoseconds (roughly the same as Unit32List) - including loop overhead, that is, operation itself is about 1-2 cycles, which is expected.
You are certainly aware of this, I'm opening a bug mostly for tracking purposes.
The text was updated successfully, but these errors were encountered: