3 ms·
Python3 has pretty good built in modules for asyncio, multiprocessing, and multithreading. Maybe port to py3 and utilize these features as an intermediate step
by solotronics 7y ago
Python3 has pretty good built in modules for asyncio, multiprocessing, and multithreading. Maybe port to py3 and utilize these features as an intermediate step while you are working on the jump to Go. I like to take a function for a single work unit "do a single thing" and then call it from a function utilizing asyncio and multithreading, this link shows a great examples.
https://pymotw.com/3/asyncio/executors.html https://pymotw.com/3/asyncio/executors.html
- dangoor 7y agoFor reasons I touch on in our blog post[1], porting to Python 3 would still be a huge amount of work (not quite as large as the port to Go, but still very large and without other benefits we get from Go). [1]: http://engineering.khanacademy.org/posts/goliath.htm http://engineering.khanacademy.org/posts/goliath.htm