At some point in the nearish future, I need to make my quadcopter python code 'faster' so allow TCP connection processing / message parsing to control it - currently it's autonomous / hard coded and loops at about 50Hz which is acceptable for autonomous, but insufficient for remote control
One option I've considered is PyPy, the JIT compiler - lovely solution when it's available, but I suspect I can depend on that any time soon.
Another option is to use os.nice() to increase the process niceness value, and it's that which I have some questions about:
Can this work on the current running process (os.nice(os.getpid(), niceness) or would I have to spawn a thread / new process and set it's niceness? It suggests this is an increment - I'd prefer to set the process priority to real-time (although this is actually subtlely different to niceness).
Any ideas / thoughts much appreciated.