Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
RandomBK
· 11y ago · 0 comments
That may be what the API requires, but is it actually implemented as a physical move/copy of memory? It sounds like they can just make the array _appear_ to be cleared, while keeping it in place in memory.
Comments
[–]
yoklov
11y ago
The way I understand it is that they usually just move the pointer to the ArrayBuffer's underlying data store. No block copy occurs.