[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:       Andy <angelflow () yahoo ! com>
Date:       2011-08-25 15:13:48
Message-ID: 1314285228.10111.YahooMailNeo () web111313 ! mail ! gq1 ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Armin,

Yes it is the regular expression module. Great to know that it'll be faster in PyPy.

A large part of my application is creating and manipulating objects using Django's \
ORM and other modules. Would PyPy speed that up too? Or are those objects too \
short-lived (they only live within a request-response cycle) for JIT to be useful?


________________________________
From: Armin Rigo <arigo@tunes.org>
To: Andy <angelflow@yahoo.com>
Cc: "pypy-dev@python.org" <pypy-dev@python.org>
Sent: Thursday, August 25, 2011 4:22 AM
Subject: Re: [pypy-dev] Is PyPy appropriate for Django?

Hi Andy,

On Wed, Aug 24, 2011 at 11:26 PM, Andy <angelflow@yahoo.com> wrote:
> 1) For URL routing Django uses the re module, which is a C extension. Would
> JIT work with that?

Is this "re" the regular expression module?  If so, it's a standard
library module, so PyPy provides one too, rewritten in RPython.  In
fact it is expected to be much faster than CPython's in the long run,
because regular expressions also use the JIT to compile regular
expression objects (which are originally some kind of bytecode).


A bientôt,

Armin.


[Attachment #5 (text/html)]

<html><body><div style="color:#000; background-color:#fff; font-family:times new \
roman, new york, times, \
serif;font-size:12pt"><div><span>Armin,</span></div><div><span><br></span></div><div><span>Yes \
it is the regular expression module. Great to know that it'll be faster in \
PyPy.</span></div><div><span><br></span></div><div><span>A large part of my \
application is creating and manipulating objects using Django's ORM and other \
modules. Would PyPy speed that up too? Or are those objects too short-lived (they \
only live within a request-response cycle) for JIT to be \
useful?</span></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> Armin Rigo \
&lt;arigo@tunes.org&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" &lt;pypy-dev@python.org&gt;<br><b><span style="font-weight: \
bold;">Sent:</span></b> Thursday, August 25, 2011 4:22 AM<br><b><span \
style="font-weight: bold;">Subject:</span></b> Re: [pypy-dev] Is PyPy appropriate for \
Django?<br></font><br>Hi Andy,<br><br>On Wed, Aug 24, 2011 at 11:26 PM, Andy &lt;<a \
ymailto="mailto:angelflow@yahoo.com" \
href="mailto:angelflow@yahoo.com">angelflow@yahoo.com</a>&gt; wrote:<br>&gt; 1) For \
URL routing&nbsp;Django uses the re module, which is a C extension. Would<br>&gt; JIT \
work with that?<br><br>Is this "re" the regular expression module?&nbsp; If so, it's \
a standard<br>library module, so PyPy provides one too, rewritten in RPython.&nbsp; \
In<br>fact it is expected to be much faster than CPython's in the long \
run,<br>because regular expressions also use the JIT to compile regular<br>expression \
objects (which are originally  some kind of bytecode).<br><br><br>A \
bientôt,<br><br>Armin.<br><br><br></div></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