--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I had originally assumed that by “using a python script to call OTP” you meant you were calling the web API. After looking at your script in more detail I now realize you are using the OTP scripting extensions, which I’ve never used. I have no idea how that will interact with Python multi-processing, so you may want to wait for an answer from someone who is more familiar with this system.
Andrew
On 21 Nov 2016, at 14:30, Andrew Byrd <and...@fastmail.net> wrote:
Hi Rafael,This particular problem is specific to Python itself rather than OTP. Fortunately there’s a huge Python community and many answers to this question are already available on Stack Overflow, blogs, etc. around the web.From a cursory glance at these answers, it looks like you’ll want to use the threading, multiprocessing, or concurrent.futures libraries.In my experience OTP scales almost linearly with the number of cores, so you’ll want to start as many requesting threads/processes as your machine has cores.