Deterministic Time Slicing

@icme: I learned today that Motoko can sometimes perform GC in a heartbeat. I thought previously that Motoko always calls user function as a separate update message that does GC if needed, but my understanding was incorrect. If your canister has a heartbeat, then it might fail with out-of-instructions.

I’ll try implement DTS for heartbeat as soon as possible.

3 Likes