Optimize updatePath function
Grufoony opened this issue · comments
Gregorio Berselli commented
I've just noticed that, as I defined it, every path depends only on the destination mode of an itinerary. We can optimize the updatePath function by computing the path only one time for every group of itineraries with the same destination.
Moreover, should we implement tha path variable inside itinerary as a pointer?
Gregorio Berselli commented
Closed in #104
Gregorio Berselli commented
To do this, simply characterize every itinerary by its destination only, leaving the source a property of the agent