about summary refs log tree commit diff
path: root/tvix/eval/src/vm
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-11-12T13·41-0800
committerclbot <clbot@tvl.fyi>2023-11-25T02·55+0000
commitb5a15989cddd8c1eb05ef648b0df1dc631daf9f2 (patch)
tree6a5cda7b048f029ca3140eaff654e4dca503825c /tvix/eval/src/vm
parent875bb26fc314b22f4a6fa2e457cf7ec5a44e7954 (diff)
feat(tvix/eval): add Thunk::unwrap_or_clone() r/7054
This commit adds Thunk::unwrap_or_clone(), which uses
Rc::try_unwrap() to avoid cloning the Value out of a an Rc which has
only one strong reference.

Change-Id: Icacefe0c823dcddf046d90c0c5cd5ed59fe976d4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10037
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: Adam Joseph <adam@westernsemico.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/vm')
0 files changed, 0 insertions, 0 deletions