Why not always use psyco for Python code?

前端 未结 8 583
北恋
北恋 2020-12-13 06:29

psyco seems to be quite helpful in optimizing Python code, and it does it in a very non-intrusive way.

Therefore, one has to wonder. Assuming you\'re always on a x8

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 06:53

    Psyco currently uses a lot of memory. It only runs on Intel 386-compatible processors (under any OS) right now. There are some subtle semantic differences (i.e. bugs) with the way Python works; they should not be apparent in most programs.

    See also the caveats section. For a hard example, I noticed that my web app with Cheetah-generated templates and DB I/O gained no appreciable speedup.

提交回复
热议问题