Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95397

Re: memory control in Python

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <lac@openend.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'subject:Python': 0.05; 'cpython': 0.05; 'counting': 0.07; 'pypy': 0.07; 'bindings': 0.09; 'garbage': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'url:pypy': 0.09; 'python': 0.10; 'assume': 0.11; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:89.233': 0.16; 'received:89.233.217': 0.16; 'received:89.233.217.133': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'figures': 0.18; 'laura': 0.18; 'library,': 0.18; 'to:2**1': 0.21; 'help.': 0.23; 'plain': 0.24; 'header:In-Reply-To:1': 0.24; 'to:no real name:2**1': 0.27; 'received:se': 0.29; 'probably': 0.31; 'though,': 0.32; 'getting': 0.33; 'problem': 0.33; 'channel': 0.34; 'text.': 0.35; 'but': 0.36; 'too': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'itself': 0.38; "won't": 0.38; 'url:en': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'header:Message-Id:1': 0.61; 'discuss': 0.61; 'more': 0.63; 'you.': 0.64; 'url:4': 0.70; 'received:89': 0.80; 'url:x': 0.81; 'ref': 0.84; 'spreadsheet': 0.84; 'url:overview': 0.84; 'url:readthedocs': 0.84; 'url:latest': 0.91
To python-list@python.org, lac@openend.se
From Laura Creighton <lac@openend.se>
Subject Re: memory control in Python
In-Reply-To Message from Terry Reedy <tjreedy@udel.edu> of "Sat, 15 Aug 2015 13:28:19 -0400." <mqnsrm$mek$1@ger.gmane.org>
References <CAM5e_kbbTAEHE=mi0WFXutJ5G2A-UV4wLsAPMcBT5XrCqhr3MA@mail.gmail.com> <87io8hc8z3.fsf@handshake.de><mqnsrm$mek$1@ger.gmane.org>
MIME-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-ID <27072.1439664938.1@fido>
Date Sat, 15 Aug 2015 20:55:39 +0200
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Sat, 15 Aug 2015 20:55:40 +0200 (CEST)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.33.1439664948.4764.python-list@python.org> (permalink)
Lines 17
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1439664948 news.xs4all.nl 2900 [2001:888:2000:d::a6]:53864
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:95397

Show key headers only | View raw


If the problem is that Python is using too much memory, then PyPy may
be able to help you.  PyPy is an alternative implementation of Python,
and by defaiult uses a minimark garbage collector.
https://pypy.readthedocs.org/en/release-2.4.x/garbage_collection.html

You will have to write your own bindings for the CPLEX C library, though,
using cffi. http://cffi.readthedocs.org/en/latest/overview.html  (since
the bindings you have assume the CPython ref counting gc).

But if your C program is itself using too much memory, then this probably
won't help.

Discuss this more on pypy-dev@python.org or the #pypy channel on freenode.
People on pypy-dev would appreciate not getting libreoffice spreadsheet
attachments but just the figures as plain text.

Laura

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: memory control in Python Laura Creighton <lac@openend.se> - 2015-08-15 20:55 +0200
  Re: memory control in Python Ping Liu <yanzhipingliu@gmail.com> - 2015-08-17 11:40 -0700
    Re: memory control in Python Laura Creighton <lac@openend.se> - 2015-08-17 20:52 +0200

csiph-web