4 ms·
Copy on write is already implemented-ish with transferable objects [1] (just copy then write the copy). However, copy on write still requires allocation and fo
by benjaminjackman 12y ago
Copy on write is already implemented-ish with transferable objects [1] (just copy then write the copy).
However, copy on write still requires allocation and for some applications that is a deal breaker.
1: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Advanced_concepts_and_examples#Passing_data_by_transferring_ownership_%28transferable_objects%29 https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers...