Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion bypassing the GIL

Received: by 10.204.25.10 with SMTP id x10mr392134bkb.15.1298722177672;
        Sat, 26 Feb 2011 04:09:37 -0800 (PST)
X-BeenThere: cython-users@googlegroups.com
Received: by 10.204.138.67 with SMTP id z3ls1011356bkt.0.p; Sat, 26 Feb 2011
 04:09:36 -0800 (PST)
Received: by 10.204.16.207 with SMTP id p15mr375125bka.22.1298722176320;
        Sat, 26 Feb 2011 04:09:36 -0800 (PST)
Received: by 10.204.16.207 with SMTP id p15mr375124bka.22.1298722176307;
        Sat, 26 Feb 2011 04:09:36 -0800 (PST)
Return-Path: <gcpcu-cython-us...@m.gmane.org>
Received: from lo.gmane.org (lo.gmane.org [80.91.229.12])
        by gmr-mx.google.com with ESMTP id o17si317086bkw.2.2011.02.26.04.09.34;
        Sat, 26 Feb 2011 04:09:34 -0800 (PST)
Received-SPF: pass (google.com: domain of gcpcu-cython-us...@m.gmane.org designates 80.91.229.12 as permitted sender) client-ip=80.91.229.12;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of gcpcu-cython-us...@m.gmane.org designates 80.91.229.12 as permitted sender) smtp.mail=gcpcu-cython-us...@m.gmane.org
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <gcpcu-cython-us...@m.gmane.org>)
	id 1PtIxp-0003Hd-MZ
	for cython-users@googlegroups.com; Sat, 26 Feb 2011 13:09:33 +0100
Received: from d133134.upc-d.chello.nl ([213.46.133.134])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <cython-users@googlegroups.com>; Sat, 26 Feb 2011 13:09:33 +0100
Received: from sparrow2867 by d133134.upc-d.chello.nl with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <cython-users@googlegroups.com>; Sat, 26 Feb 2011 13:09:33 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: cython-users@googlegroups.com
From: Alex van Houten <sparrow2...@yahoo.com>
Subject: Re: bypassing the GIL
Date: Sat, 26 Feb 2011 12:09:21 +0000 (UTC)
Lines: 17
Message-ID: <loom.20110226T130746-310@post.gmane.org>
References: <loom.20110223T150907-934@post.gmane.org> <201102231655.47924.faltet@gmail.com> <loom.20110225T152630-...@post.gmane.org> <201102251657.53927.fal...@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: use...@dough.gmane.org
X-Gmane-NNTP-Posting-Host: sea.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 213.46.133.134 (Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.6.13-1.fc13 Firefox/3.6.13)

Francesc Alted <faltet <at> gmail.com> writes:

> >>> a = np.arange(12*256*256).reshape(12,256,256)
> >>> timeit s = cPickle.dumps(a,protocol=-1); b = cPickle.loads(s)
> 100 loops, best of 3: 13.2 ms per loop
> >>> 13.2*8    # you have 8 threads
> 105.59999999999999
> 
> i.e. 105 ms is pretty close to 120 ms in your machine.

Ok, thanks. I guess that means that switching to Sturla's sharedmem package will
not speed things up.

Alex.