Skip to content

Subnetwork searching for car takes a lot longer if using multiple vehicles #520

Closed

Description

@karussell

As you can see: subnetwork searching takes roughly 3h if done with 3 flag encoders, which is 9 (!) times longer than if car search is done alone (20min). Memory shouldn't be an issue, but maybe GC or some tarjan implementation limits for the traversal etc?

2015-09-16 22:45:15,965 [main] INFO  com.graphhopper.GraphHopper - start finding subnetworks, totalMB:73393, usedMB:25026
2015-09-16 23:16:48,988 [main] INFO  com.graphhopper.routing.util.PrepareRoutingSubnetworks - 5241731 subnetworks found for bike2, totalMB:74569, usedMB:36508
2015-09-16 23:42:44,763 [main] INFO  com.graphhopper.routing.util.PrepareRoutingSubnetworks - 4475144 subnetworks found for foot, totalMB:74469, usedMB:45832
2015-09-17 02:39:53,375 [main] INFO  com.graphhopper.routing.util.PrepareRoutingSubnetworks - 16834684 subnetworks found for car, totalMB:74021, usedMB:44128

Numbers: there are roughly 10 times more subnetworks than for foot or bike, and there are 5 times more subnetworks compared to the single flag encoder case with car.

This happens only if mixing with outdoor profiles. If e.g. only car and motorcycle all is fine (~30min)

Activity

  1. karussell commented on Nov 15, 2015

    @karussell
    MemberAuthor

    This is now a lot better (<15min each vehicle) but still graph.optimize() takes ~50min

  2. added this to the 0.6 milestone on Nov 15, 2015
  3. karussell commented on Nov 16, 2015

    @karussell
    MemberAuthor

    This gave a hugh speed up if using multiple vehicles (up to 3h per vehicle). Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions