gaulinmp/pyroutelib2

Too slow :(

komputerrowerowy opened this issue · 1 comments

Hi,
I am writting simple app and I have to use some routing. I saw that route is calculate very slow (road around 5km/3miles in 40sec). Do you know what is a reason? How can I improve it?

This is some pretty old code. Here's some general ideas.

  1. Since this code is old, there might be performance improvements that Python 3.x has over 2.x. I'd suggest profiling the code.

  2. I suspect that the XML parser is going to be the performance issue. You might be able to get better performance by switching XML parsers, but it could be quite a bit of work. A different parser might make it harder to install this, so that can be a trade-off.