X-Received: by 10.182.196.34 with SMTP id ij2mr17056201obc.24.1446413248682; Sun, 01 Nov 2015 13:27:28 -0800 (PST) X-Received: by 10.50.32.7 with SMTP id e7mr15777igi.0.1446413248642; Sun, 01 Nov 2015 13:27:28 -0800 (PST) Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!i2no1512490igv.0!news-out.google.com!fs1ni5147igb.0!nntp.google.com!i2no2226807igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Sun, 1 Nov 2015 13:27:27 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2600:380:4026:608a:1fc8:97c4:f3bb:6d9b; posting-account=Aj9uXAoAAAA0nMb_ZmsN7l2jO5N9nwiY NNTP-Posting-Host: 2600:380:4026:608a:1fc8:97c4:f3bb:6d9b User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <37cd1025-2b18-48bf-a3cc-e792cce11b58@googlegroups.com> Subject: PyPy subprocess From: LJ Injection-Date: Sun, 01 Nov 2015 21:27:28 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:98064 Hi All. I hope you're having a good weekend. Im working on a large scale optimizati= on problem which invokes the Gurobi solver from python. Before invoking the= solver I use pure python to solve five subproblems in parallel using the m= ultiprocessing module. These subproblems are the bottleneck of my procedure= . Im wondering if there is a way in which I can use PyPy to solve the just = subproblems in parallel, and return to CPython for the overall routines. Th= e reason behind this, is that Gurobipy (python interface for the Gurobi opt= imization solver) is not compatible with PyPy, and Im seeing savings of 50%= in time when using PyPy to somve the subproblems. Any help would be highly appreciated. Lj.