JoelvanIngen / MinProg-AH

2 stars 1 forks source link

Only save Node attributes to stack that actually change #13

Open JoelvanIngen opened 8 months ago

JoelvanIngen commented 8 months ago

If we only save the node attributes to the History stack, we won't have to construct a new node each time we pull from the stack. This will save time by preventing saving node information that will not be used when reverting to a previous state, as well as save us from re-linking each node after a stack pull. Lastly, this prevents us from initialising new nodes when we already have access to the node objects and can modify them in place.