Skip to content

Performance issues on longer routes #1

@narimiran

Description

@narimiran

I've been using https://open-map-maker.vercel.app in last few days and it has been great for creating the routes and saving them as .gpx files. Thanks for making it!!

But I've experienced very noticeable performance issues when trying to build longer routes.
For the first ~200 km everything is ok and responsive(-ish), but after ~ 200 km it starts to visibly lag (I can see my CPU running at 100%) and I have to wait several seconds before a point is added to the route and the site becomes responsive again.
And if you try to make routes longer than ~350 km, it becomes really painful to use. The pauses are even longer.

  • Is there some "recalculate everything from the beginning" going on, which becomes more noticeable as a route grows longer?
  • Is the amount of .gpx points along the route (and I don't mean the user-placed control points) getting huge? Can this be purged/optimized that only every-N points are taken? (If a route is multi-hundred kilometers long, the resolution doesn't have to be in single meters)
  • Can it maybe be done that a single long route is internally split into multiple shorter routes, so instead of one long route from A do D, there would be routes A-B, B-C, C-D (where B and C can be user-placed control points)? This way the "current route" would only be C-D, which would hopefully help with the performance.
  • The last point (multiple shorter routes) could also be made explicit and user-visible — to have an option to create multiple routes/layers. And then when saving, the user could choose if they want to save a single route (layer?) or all of them.

Let me know what you think....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions