3 ms·
Maybe it's worth noting, maybe not, but this extremely trivial example (e.g. serial.py) gets executed 20x faster just by using pypy which speeds up serial execu
by fijal 11y ago
Maybe it's worth noting, maybe not, but this extremely trivial example (e.g. serial.py) gets executed 20x faster just by using pypy which speeds up serial execution. This is more than you would get by any sort of multiprocessing/threading shengenians just by using an optimizing VM (and granted, this example is very simple, but maybe addressing basic performance problems should come first)
- sonicrocketman 11y agoI really wanted to take a look to how PyPy handles this. Now I'm even more so. Thanks!
- keypusher 11y agoif you are blocking on io (such as read/write to disk or over the network), pypy execution speed will not help while threading will.
- fijal 11y agoobviously, but the time of blocking on IO should be the same on all strategies + CPU overhead of doing that
- sandGorgon 11y agopypy has not been updated in a while (it's compatibility is with Python 3.25). what's even more worrying is that it had almost run out of funds in July. Currently, it has 5000$ in the fund earmarked for Py3 support (http://pypy.org/py3donate.html http://pypy.org/py3donate.html) somehow I thought that Google was supporting Pypy.
- fijal 11y agoPyPy is being update very regularly with 3 releases a year on average. Most of the work however focuses on things our users really want - stability, performance, C extension support, warmup speed, memory consumption - you know the mundane stuff. If someone is willing to put effort into supporting more python 3, that's great! we would welcome the contributions. PS. We're closing onto 3.3 release soon PPS. Google donated a bit of money to PyPy when Guido was there, definitely "google supporting pypy" is a bit of a stretch. It was years ago though
- sandGorgon 11y agoGoogle not supporting it in a big way is very strange. is there a political conflict between cpython and pypy ? Because it seems to me that Pypy is the future of python. and it makes total sense for someone like Google or Dropbox to support it with a lot of money.
- fijal 11y agoIt makes sense != it makes money. Google does not support cpython either in any meaningful way (that is, someone hired full time to work on cpython for example).
- sandGorgon 11y agohuh ? https://www.python.org/~guido/ https://www.python.org/~guido/ In January 2013 I joined Dropbox. I work on various Dropbox products and have 50% for my Python work, no strings attached. http://www.linuxjournal.com/magazine/interview-guido-van-rossum http://www.linuxjournal.com/magazine/interview-guido-van-ros... I don't have a 20% project per se, but I have Google's agreement that I can spend 50% of my time on Python, with no strings attached, so I call this my “50% project”.
- dalke 11y agoDropbox isn't Google. I don't know if Google does or does not provide meaningful support to CPython development. Certainly it did, as you point out. But fijal's comment was about the present, not the past.