Appengine, performance degradation with python27

前端 未结 6 1001
天涯浪人
天涯浪人 2021-01-31 10:03

I wanted to test python27 on appengine so I have migrated my app from python25. Performance got more than 2x slower for every request! Then I\'ve returned to python25 and perfor

6条回答
  •  逝去的感伤
    2021-01-31 10:10

    As far as I know, Python 2.7 should be faster than 2.5. However, there are some factors that can influence speeds:

    • The way the binary is compiled;
    • Whether your libraries (such as Memcache) are compiled as C(++) or Python. A C++ module is, of course, faster than the Python equivalent;
    • The server it's on - I haven't ever used App Engine but I'd assume that a server only runs either Python 2.5 or Python 2.7, since mixing them would be a waste of resources. If the 2.7 servers are used a lot more than the 2.5 servers and App Engine hasn't compensated for this, you'll notice the performance go down as well.

    These are the first 3 things that I came up with, but there are a lot of factors. Even the weather could in theory affect performance.

提交回复
热议问题