Add the lwt support of cachet #1
Loading…
Reference in a new issue
No description provided.
Delete branch "lwt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
/cc @reynir WDYT?
@ -0,0 +33,4 @@
get_uint8 t (logical_address + idx) >>= fun v ->
Bytes.set_uint8 buf (dst_off + idx) v;
go (succ idx)
end
Seems a perf killer but it's not. The bind operator on lwt is not a cooperative point, so if we look about the
load
function, we do anLwt.pause
only if we require to do amap
. Otherwise, lwt will try to go as far as it can.