6 comments

[ 2.6 ms ] story [ 23.7 ms ] thread
Has anyone tried to use PyPy to speedup Django?
The template language is definitely faster than it, however currently the only database backend that PyPy has (that Django supports) is SQLite. At the moment SQLite is super slow on PyPy, because it's written using ctypes, we have an open branch to take ctypes from super slow to super fast (basically inline the ASM calls directly into JIT'd code, rather than make calls through libffi).
Yes, though only on a single app -- a reasonably high-traffic content site. In this case, PyPy is roughly 10% faster (measured by comparing total view rendering time) but consumes about 2-3x as much RAM.

Edit: I should clarify: this site doesn't use a DB engine but instead is pulling and rending content from an XML DB over a REST API. See Alex's note below about DB performance for why this is an important point.

I'm sure PyPY folks would love to know everything you can comfortably disclose about this use case :)
> this site doesn't use a DB engine but instead is pulling and rending content from an XML DB over a REST API

Just a random suggestion, but might it be easier (and less taxing) to have a background job pull the XML into a TMPFS (ramdisk) then update it every 5 minutes or so?