Closed UlisseMini closed 3 years ago
Every _backwards closures closes over surrounding state, leading to high memory usage and possible memory leaks.
_backwards
Possible fixes are
_parents
I prefer (1) since eventually I can make graphs like this. and (2) seems like a hell to debug.
TODO:
In my new rewrite I'm not using closures much, and (a) the closure closes over a pointer reference so it isn't copying anything (b) if you use the same param name the function param shadows the closed value
Every
_backwards
closures closes over surrounding state, leading to high memory usage and possible memory leaks.Possible fixes are
_parents
list, having the closures do everything with recursionI prefer (1) since eventually I can make graphs like this. and (2) seems like a hell to debug.
TODO: