Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a regresion introduced in #2743 #2815

Merged
merged 1 commit into from Jan 27, 2021
Merged

fix a regresion introduced in #2743 #2815

merged 1 commit into from Jan 27, 2021

Conversation

kevinkreiser
Copy link
Member

I did some optimizations in #2743 but made a very important typo when doing so. I missed that the function call we used for timedependent algorithms to stop downward expansion was the one that took the predecessory labels distance. This caused the router to cull search space that was needed for it to find the destination (or origin in the reverse search)

@@ -104,7 +104,8 @@ bool TimeDepForward::ExpandForward(GraphReader& graphreader,
// if this is a downward transition (ups are always allowed) AND we are no longer allowed OR
// we cant get the tile at that level (local extracts could have this problem) THEN bail
graph_tile_ptr trans_tile = nullptr;
if ((!trans->up() && hierarchy_limits_[trans->endnode().level()].StopExpanding()) ||
if ((!trans->up() &&
hierarchy_limits_[trans->endnode().level()].StopExpanding(pred.distance())) ||
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the previous PR i accidentally removed the distance argument 🤦

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@purew purew merged commit fe2eb60 into master Jan 27, 2021
@purew purew deleted the timedep_regression branch January 27, 2021 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants