feat(perf): Remove unnecessary construction of native ArrayBuffer#1015
Conversation
|
@wh201906 is attempting to deploy a commit to the Margelo Team on Vercel. A member of the Team first needs to authorize it. |
|
@wh201906 thanks for this! Claude review agrees: Verdict: safe to mergeThe PR is correctly scoped. Why ownership is fine hereI verified every modified call site against three things:
The two subtle cases I scrutinized — both fine
Things worth verifying before merging
Perf upsideReal and measurable. For |
|
@wh201906 also, can you start using the prefixes for PR titles: |
Sure! |
This PR reduces unnecessary data copying from
ToNativeArrayBuffer()As documented, it's safe to use the non-owning
ArrayBufferbefore the sync function returns. I checked such cases and removedToNativeArrayBuffer()in them.