osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.37k stars 987 forks source link

Custom routing.xml results in extremely slow routing #20221

Open Guylby opened 2 days ago

Guylby commented 2 days ago

Description

Greetings,

While playing around with a custom routing.xml file I found that the routing is extremely slow compared to the default Osmand profiles. Here is two video example. Both use the exact same profile and settings, the only change is that one uses the Default "pedestrian" profile, the other the "pedestrian" profile found in the routing.xml file placed in the routing folder in Osmand. (the file was downloaded from https://github.com/osmandapp/OsmAnd-resources/blob/master/routing/routing.xml and not modified) I've tested different routing.xml files (some old, some new), and all had the same slowdown. The problem was the same in both Osmand 4.7.17 and 4.8.0 Osmand is installed in the Android/Media folder in the internal memory.

Default Pedestrian Profile Pedestrian profile from routing.xml

Steps to reproduce

Move Osmand to the Android/Media folder in the internal memory. Copy a routing.xml profile to the routing folder in the net.osmand.plus folder. Use the pedestrian profile of the routing.xml file as the routing parameters Start a navigation, notice the very slow calculation.

Actual result

Routing is very slow

Expected result

Routing speed is the same with integrated default profiles and custom profiles.

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive. Review this CAREFULLY before posting your issue!

OsmAnd Version: 4.7.17 / 4.8.0 google beta
Android/iOS version: 13
Device model: Sony Xperia 10iii
Crash-Logs: ?
Guylby commented 2 days ago

Tried a default install of Osmand 4.7.17, with default storage folder (Android/Data). Created a pedestrian profile from the default one, added the routing.xml file and change the routing to it,

Same problem happened as above

yuriiurshuliak commented 1 day ago

The bug has been confirmed. To replicate it, create a route using the default pedestrian profile and observe the time taken. Next, import routing.xml, choose the Navigation Type from it, and build the same route.

In my tests, the route took 12 seconds to build on the default pedestrian profile. However, using the pedestrian profile linked with routing.xml, it took 3 minutes and 30 seconds.

OsmAnd~ 4.8.0#2652m, released: 2024-07-02

Default Pedestrian Profile Pedestrian profile from routing.xml
Guylby commented 1 day ago

I've tested with the Bicycle profile and the routing from routing.xml il also much slower: 27,8s vs 1m05s With the Car profiles, speed seems to be the same between Osmand profile and routing.xml car profile.