Going to the next question is too slow
The path finding algorithm runs every time Next
or Prev
is pressed. This is rather slow.
For a finished template, the actual paths never change. The correct way would probably be to store a dmpt.Section
's possible paths in the section, and just look up that. The question is how best to do that.
The paths would need to be recalculated every time the template was changed, but that's not supposed to happen once a sepcific template is in use by end users.