3 ms·
That's cool, but I am wondering where are the trials of say Cython or PyPy? Why is there a need to switch to a different language, where are the benchmarks or p
by nobodysfool 13y ago
That's cool, but I am wondering where are the trials of say Cython or PyPy? Why is there a need to switch to a different language, where are the benchmarks or profiling to show where the performance issues lie? I like Go, and I plan to learn it myself, but I just don't get why people jump ship so quick from Python. This post makes it seem like Python is slow. I say it's not the language but the interpreter. GIL is nonexistant in Jython, or IronPython. It can be avoided with the multiprocessing module. Gevent may be good for regular python, but if you have the GIL getting in the way, best to switch to something else.
- swah 13y agoTotally agreed. Also, its a great merit being the first language systems are written on so many places...
- mattrobenolt 13y agoOur assumptions were that the GIL was getting in the way with our excessive concurrency. gevent + PyPy is not really a safe thing yet. This entire project was also stood up in a week, so it's not like this service is some monster service with a lot of work invested into it. It was small enough that instrumenting and figuring out where the problems may lie and figuring them out would have probably taken just as much time.
- nobodysfool 13y agoPerfectly true, gevent + pypy requires a separate build of gevent, but pypy comes with eventlet, so it might have warranted an investigation to see if it makes sense to switch. However, I suppose without details of the service itself, it's hard to make a judgment call from the sidelines. Still, glad you were able to improve performance. Why was 'Go' chosen? Nevermind, I see that was answered in another thread.