Junction restriction manager is not using the cache it has #902
Labels
feature
A new distinct feature
JUNCTION RESTRICTIONS
Feature: Junction restrictions
PATHFINDER
Pathfinding tweaks or issues
performance
Make it faster!
Junction restriction manager calculates and stores default traffic rules on segment end update but
IsDefault<TrafficRule>Allowed
is not using the cached value most of the times. This means they are recalculated for every path find.We need to introduce new internal methods:
CalcualteDefault<TrafficRule>Allowed()
: called on segment end updateCalcualte<TrafficRule>IsConfigurable()
: called on segment end updateThis way
IsDefault<TrafficRule>Allowed()
Is<TrafficRule>IsConfigurable()
need only access the cached value which is fast.I will elaborate more on this when I have time.
The text was updated successfully, but these errors were encountered: