Re: [pypy-dev] Realtime communication and webserver to use with pypy?

2011-09-29 Thread William ML Leslie
On 30 September 2011 13:39, John Anderson wrote: > In cpython I deploy using gevent or gunicorn for high performance/low memory > usage with the ability to be non-blocking for realtime communication using > socket.io. > If I want to move to using PyPy... what are my options for this type of > setu

Re: [pypy-dev] I was talking with Russel Winder at PyCON UK.

2011-09-29 Thread Josh Ayers
Here's a further modified version. In this case, when using the pool for the first time, it uses an n of 10, instead of 100 million. Even with such a low precision, the first execution takes 1.3 seconds. It seems some significant warm up time is needed the first time a multiprocessing.Pool objec

[pypy-dev] Realtime communication and webserver to use with pypy?

2011-09-29 Thread John Anderson
In cpython I deploy using gevent or gunicorn for high performance/low memory usage with the ability to be non-blocking for realtime communication using socket.io. If I want to move to using PyPy... what are my options for this type of setup? Is there a non-blocking webserver in python that works

Re: [pypy-dev] I was talking with Russel Winder at PyCON UK.

2011-09-29 Thread Josh Ayers
I think the slowdown you're seeing is due to the time it takes to create new processes. This seems to be quite a bit slower in PyPy than in CPython. However, once the process pool is created and has been used once, the execution time vs. process count behaves as expected. I attached a modified ve

Re: [pypy-dev] I was talking with Russel Winder at PyCON UK.

2011-09-29 Thread Romain Guillebert
Hi David Beazley noticed that PyPy's GIL isn't very good compared to CPython's : https://twitter.com/#!/dabeaz/status/118889721358327808 https://twitter.com/#!/dabeaz/status/11789136523264 https://twitter.com/#!/dabeaz/status/118864260175634433 IMO it's the same issue Cheers Romain On T

[pypy-dev] I was talking with Russel Winder at PyCON UK.

2011-09-29 Thread Laura Creighton
He says, currently, PyPy's threading does not scale properly. More below. Maybe we want to use his benchmark? Laura --- Forwarded Message Return-Path: rus...@russel.org.uk Delivery-Date: Thu Sep 29 13:53:50 2011 Subject: PyPy and multiprocessing From: Russel Winder To: Laura Creighton

Re: [pypy-dev] [pypy-commit] pypy default: Merge a branch that makes space.isinstance(w_obj, ) do a fastpath

2011-09-29 Thread Maciej Fijalkowski
On Thu, Sep 29, 2011 at 5:51 AM, Armin Rigo wrote: > Hi Maciek, > > On Thu, Sep 29, 2011 at 10:33, Carl Friedrich Bolz wrote: >>> +class Entry(ExtRegistryEntry): >>> +    _about_ = is_constant >>> + >>> +    def compute_result_annotation(self, s_arg): >>> +        from pypy.annotation import mode

Re: [pypy-dev] [pypy-commit] pypy default: Merge a branch that makes space.isinstance(w_obj, ) do a fastpath

2011-09-29 Thread Armin Rigo
Hi Maciek, On Thu, Sep 29, 2011 at 10:33, Carl Friedrich Bolz wrote: >> +class Entry(ExtRegistryEntry): >> +    _about_ = is_constant >> + >> +    def compute_result_annotation(self, s_arg): >> +        from pypy.annotation import model >> +        r = model.SomeBool() >> +        r.const = s_arg

Re: [pypy-dev] [pypy-commit] pypy default: Merge a branch that makes space.isinstance(w_obj, ) do a fastpath

2011-09-29 Thread Carl Friedrich Bolz
Hi Maciek, The objspace part of this merge really needs tests! You should write tests that the .interplevel_cls attribute is set, and that calling isinstance_w actually goes through the fast path. Cheers, Carl Friedrich On 09/29/2011 04:40 AM, fijal wrote: Author: Maciej Fijalkowski Branch

Re: [pypy-dev] [pypy-commit] pypy default: Merge a branch that makes space.isinstance(w_obj, ) do a fastpath

2011-09-29 Thread Carl Friedrich Bolz
Hi Maciek, The objspace part of this test really needs tests! You should write tests that the .interplevel_cls attribute is set, and that calling isinstance_w actually goes through the fast path. Cheers, Carl Friedrich On 09/29/2011 04:40 AM, fijal wrote: Author: Maciej Fijalkowski Branch: