Closed hjabbot closed 3 months ago
I ran an initial test using the waypoints and mesh I'd been looking at for Medhi's glider example. The first thing that I noticed in the profile for this case was the is_visited
method of SourceWaypoint
was taking up a huge chunk of time. I switched the list
of visited_nodes
for a set
and that seems to have sped things up considerably (265s -> 167s). Can you try running again with latest version I've pushed @hjabbot? There are a few other things I might look at but it would be good to understand the effect of this particular change.
Initial profile from snakeviz:
After change:
That appears to have fixed it, now refactor sitting around 1850 seconds :+1: Nicely done
The runtime of
optimise_routes
appears to be around 33% slower on 0.6.x as compared to main. With the waypoints file I've been using, 0.6.x takes ~2400 seconds to run, whereas main runs in ~1750 seconds.Waypoints being tested
Possibly could be improved by the suggestions provided in #280