You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.
In the wire format, an NXT command that takes parameters like these (const char* name, uint32_t numIds uint32_t* ids) doesn't have ids aligned (and the wire allocator don't necessarily returned aligned memory either). This is not great for performance in native but would kill performance of a JS-side wire client, that would have to use a DataView type of API. If things are aligned, a JS wire-client could instead use a combo of both a UInt8Array and UInt32Array which get optimized by V8 (and probably other JS engines).
The text was updated successfully, but these errors were encountered:
In the wire format, an NXT command that takes parameters like these (const char* name, uint32_t numIds uint32_t* ids) doesn't have ids aligned (and the wire allocator don't necessarily returned aligned memory either). This is not great for performance in native but would kill performance of a JS-side wire client, that would have to use a DataView type of API. If things are aligned, a JS wire-client could instead use a combo of both a UInt8Array and UInt32Array which get optimized by V8 (and probably other JS engines).
The text was updated successfully, but these errors were encountered: