[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-dev
Subject:    Re: [pypy-dev] Is PyPy appropriate for Django?
From:       David Fraser <davidf () sjsoft ! com>
Date:       2011-08-25 16:11:32
Message-ID: 75ecec99-83d8-4fa5-8c13-6c820286899c () jackdaw ! local
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Andy 


I'm using our own internal platform which uses CherryPy, sqlalchemy and \
Routes. Currently I get a 20% speedup once JIT has completed; most of this \
I think has to do with our own native code that's not very friendly to PyPy \
JIT (lots of generators and **kwargs passing), so I'm hoping to get that \
better. I haven't monitored memory usage specifically 


Cheers 
David 

----- Original Message -----

From: "Andy" <angelflow@yahoo.com> 
To: "David Fraser" <davidf@sjsoft.com> 
Cc: pypy-dev@python.org 
Sent: Thursday, August 25, 2011 5:01:25 PM 
Subject: Re: [pypy-dev] Is PyPy appropriate for Django? 



Hi David, 


Which platform are you using? 


How big of a speedup did you get? Did the memory footprint increased \
significantly? 


Thanks. 




From: David Fraser <davidf@sjsoft.com> 
To: Andy <angelflow@yahoo.com> 
Cc: pypy-dev@python.org 
Sent: Thursday, August 25, 2011 1:12 AM 
Subject: Re: [pypy-dev] Is PyPy appropriate for Django? 

I'm not using Django but another web platform; I've found some speedup \
using pypy after the JIT has kicked in, but it did require some profiling \
and adjusting of my code. Why not give pypy a go? 

----- Original Message ----- 

From: "Andy" < angelflow@yahoo.com > 
To: pypy-dev@python.org 
Sent: Wednesday, August 24, 2011 11:26:25 PM 
Subject: [pypy-dev] Is PyPy appropriate for Django? 



Hi, 


In the PyPy benchmark there's a Django test that shows tremendous speedup \
of Django when running PyPy-JIT. But that is just for Django templates. \
What about the other parts of Django? 


1) For URL routing Django uses the re module, which is a C extension. Would \
JIT work with that? 


2) Other parts such as DB driver also contains C code, again would that \
work with JIT? I suppose I could use a pure Python driver, but would a \
JIT'd pure Python driver be much slower than a native driver? 


In general are there any rules of thumbs regarding PyPy and C extensions - \
what works, what doesn't? 


Thanks. 
_______________________________________________ 
pypy-dev mailing list 
pypy-dev@python.org 
http://mail.python.org/mailman/listinfo/pypy-dev 


[Attachment #5 (text/html)]

<html><head><style type='text/css'>p { margin: 0; \
}</style></head><body><div style='font-family: Times New Roman; font-size: \
12pt; color: #000000'>Hi Andy<div><br></div><div>I'm using our own internal \
platform which uses CherryPy, sqlalchemy and Routes. Currently I get a 20% \
speedup once JIT has completed; most of this I think has to do with our own \
native code that's not very friendly to PyPy JIT (lots of generators and \
**kwargs passing), so I'm hoping to get that better. I haven't monitored \
memory usage specifically</div><div><br></div><div>Cheers</div><div>David<br><br><hr \
id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: \
</b>"Andy" &lt;angelflow@yahoo.com&gt;<br><b>To: </b>"David Fraser" \
&lt;davidf@sjsoft.com&gt;<br><b>Cc: </b>pypy-dev@python.org<br><b>Sent: \
</b>Thursday, August 25, 2011 5:01:25 PM<br><b>Subject: </b>Re: [pypy-dev] \
Is PyPy appropriate for Django?<br><br><div style="color:#000; \
background-color:#fff; font-family:times new roman, new york, times, \
serif;font-size:12pt"><div><span>Hi \
David,</span></div><div><span><br></span></div><div><span>Which platform \
are you using?</span></div><div><br></div><div>How big of a speedup did you \
get? Did the memory footprint increased \
significantly?</div><div><br></div><div>Thanks.</div><div><br></div><div \
style="font-size: 12pt; font-family: 'times new roman', 'new york', times, \
serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new \
york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span \
style="font-weight:bold;">From:</span></b> David Fraser \
&lt;davidf@sjsoft.com&gt;<br><b><span style="font-weight: \
bold;">To:</span></b> Andy &lt;angelflow@yahoo.com&gt;<br><b><span \
style="font-weight: bold;">Cc:</span></b> pypy-dev@python.org<br><b><span \
style="font-weight: bold;">Sent:</span></b> Thursday, August 25, 2011 1:12  \
AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: \
[pypy-dev] Is PyPy appropriate for Django?<br></font><br>I'm not using \
Django but another web platform; I've found some speedup using pypy after \
the JIT has kicked in, but it did require some profiling and adjusting of \
my code. Why not give pypy a go?<br><br>----- Original Message ----- \
<br><br>From: "Andy" &lt;<a href="mailto:angelflow@yahoo.com" \
target="_blank">angelflow@yahoo.com</a>&gt; <br>To: <a \
href="mailto:pypy-dev@python.org" target="_blank">pypy-dev@python.org</a> \
<br>Sent: Wednesday, August 24, 2011 11:26:25 PM <br>Subject: [pypy-dev] Is \
PyPy appropriate for Django? <br><br><br><br>Hi, <br><br><br>In the PyPy \
benchmark there's a Django test that shows tremendous speedup of Django \
when running PyPy-JIT. But that is just for Django templates. What about \
the other parts of Django? <br><br><br>1) For URL routing Django uses the \
re module,  which is a C extension. Would JIT work with that? \
<br><br><br>2) Other parts such as DB driver also contains C code, again \
would that work with JIT? I suppose I could use a pure Python driver, but \
would a JIT'd pure Python driver be much slower than a native driver? \
<br><br><br>In general are there any rules of thumbs regarding PyPy and C \
extensions - what works, what doesn't? <br><br><br>Thanks. \
<br>_______________________________________________ <br>pypy-dev mailing \
list <br><a href="mailto:pypy-dev@python.org" \
target="_blank">pypy-dev@python.org</a> <br><a \
href="http://mail.python.org/mailman/listinfo/pypy-dev" \
target="_blank">http://mail.python.org/mailman/listinfo/pypy-dev</a> \
<br><br><br></div></div></div></div><br></div></div></body></html>



_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic