osm2pgrouting
osm2pgrouting copied to clipboard
Make use of multiple cores on user’s machine (currently tool lacks such features).
To be able to use multiple cores, probably using threads might do the trick, you might want to see how boost::threads works. http://www.boost.org/doc/libs/1_58_0/doc/html/thread.html Here are some examples of how to use them: https://github.com/boostorg/thread/tree/master/example
One thread can be processing data (producer), and another thread (consumer) can be uploading to the database the data that has being finished processing. So from the examples, you might want to have a more deeper look to the producer-consumer examples. Difficulty: Unknown, probably from medium to high Urgent: not so urgent, but if the code is designed in such a way that the two tasks can be performed one after the other, then probably the implementation of making the 2 tasks with threads will be easier.