hgeorgsch / armchar-swish

ArM character server implementation using Haskell and Swish
GNU General Public License v3.0
0 stars 1 forks source link

Derived graphs are recalculated for no reason #53

Closed hgeorgsch closed 2 years ago

hgeorgsch commented 2 years ago

When graphs are derived from STM variables, they seem to be recomputed. At least, the program is slower when raw graphs are stored. It seems that the runtime does not know that the graph has not changed when it comes from STM. It may be a possibility to store all the objects in the State variable.

FRP may be a solution. We have a fixed network of calculations for the system of objects.

hgeorgsch commented 2 years ago

Fixed by storing both raw and derived graphs in STM