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
In many use cases you want to take a snapshot of some mutable data. The snapshot should be immutable, but the original data remains mutable.
Right now, that requires two steps: mutable.slice(0).transferToImmutable(). In practice I would guess that the intermediate mutable copy is quite cheap. But it may be worth checking this assumption with engines to verify this, because if the intermediate mutable copy is actually expensive, it could be worth adding another method to combine these steps into one.
The text was updated successfully, but these errors were encountered:
In many use cases you want to take a snapshot of some mutable data. The snapshot should be immutable, but the original data remains mutable.
Right now, that requires two steps:
mutable.slice(0).transferToImmutable()
. In practice I would guess that the intermediate mutable copy is quite cheap. But it may be worth checking this assumption with engines to verify this, because if the intermediate mutable copy is actually expensive, it could be worth adding another method to combine these steps into one.The text was updated successfully, but these errors were encountered: