Re:Writing a Non-Blocking JavaScript Quicksort
by ougawouga on Wednesday June 10, 2015 @05:33AM
(#9690833)
Not with transferable objects.
[ Parent
| on HN ]
Re:Writing a Non-Blocking JavaScript Quicksort
by amelius on Wednesday June 10, 2015 @05:39AM
(#9690854)
From [1]:
> when transferring an ArrayBuffer from your main app to Worker, the original ArrayBuffer is cleared and no longer usable
This is really too restrictive in many situations.
[1] https://developers.google.com/web/updates/2011/12/Transferab...
Re:Writing a Non-Blocking JavaScript Quicksort
by RandomBK on Wednesday June 10, 2015 @09:40AM
(#9692047)
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.