dplyukhin / UIGC

A garbage collector for Akka actors!
Other
4 stars 2 forks source link

Termination detection algorithm #20

Closed dplyukhin closed 4 years ago

dplyukhin commented 4 years ago

The next step towards termination detection (#7) is implementing the algorithm.

The naive implementation of TerminationDetector is to keep all of the snapshots in its local state and then run findTerminated each time that addSnapshot is called. I think that we can maintain some data structures in such a way that the algorithm will run much faster; ideally, addSnapshot should run in constant time.