Re: memory control in Python

2015-08-18 Thread Ping Liu
Hi, Oscar, Your feedback is very valuable to me since you dig into the problem itself. Basically, we are trying to develop an open source software with multiple interface to several free solvers so that we can switch among them in case one of them is not working or so efficient. The optimizati

Re: memory control in Python

2015-08-18 Thread Oscar Benjamin
On 15 August 2015 at 00:41, Ping Liu wrote: > Dear All, Hi Ping Liu, > I am working on an optimization problem, where we are trying to minimize > some indicators like energy usage, energy cost, CO2 emission. In this > problem, we have a bunch of energy conversion technologies for electricity > a

Re: memory control in Python

2015-08-18 Thread Laura Creighton
In a message of Tue, 18 Aug 2015 01:56:16 -0700, Rustom Mody writes: >[How she (her mail client) manages to befuddle googlegroups thusly is >quite a mystery... >] For me as well, as all I am doing is just replying to the mail ... And I haven't changed my mail client at all in years and years ...

Re: memory control in Python

2015-08-18 Thread Rustom Mody
On Tuesday, August 18, 2015 at 3:40:11 AM UTC+5:30, Ping Liu wrote: > Hi, Dieter, > > If I move from Python to Jython or IronPython, do I need to retool whatever I > have done? If so, that may take quite a long time. This may make the > reimplementation impossible. Hi Ping There is a message f

Re: memory control in Python

2015-08-17 Thread Laura Creighton
In a message of Tue, 18 Aug 2015 10:13:57 +1000, Chris Angelico writes: >On Tue, Aug 18, 2015 at 8:09 AM, Ping Liu wrote: >> If I move from Python to Jython or IronPython, do I need to retool whatever >> I have done? If so, that may take quite a long time. This may make the >> reimplementation i

Re: memory control in Python

2015-08-17 Thread dieter
Ping Liu writes: > If I move from Python to Jython or IronPython, do I need to retool whatever I > have done? If so, that may take quite a long time. This may make the > reimplementation impossible. As Chris already pointed out, you are still using Python -- i.e. the base language does not ch

Re: memory control in Python

2015-08-17 Thread Chris Angelico
On Tue, Aug 18, 2015 at 8:09 AM, Ping Liu wrote: > If I move from Python to Jython or IronPython, do I need to retool whatever I > have done? If so, that may take quite a long time. This may make the > reimplementation impossible. You're not moving from Python to something else; you're moving f

Re: memory control in Python

2015-08-17 Thread Ping Liu
Hi, Dieter, If I move from Python to Jython or IronPython, do I need to retool whatever I have done? If so, that may take quite a long time. This may make the reimplementation impossible. -- https://mail.python.org/mailman/listinfo/python-list

Re: memory control in Python

2015-08-17 Thread Laura Creighton
In a message of Mon, 17 Aug 2015 11:40:32 -0700, Ping Liu writes: >> Discuss this more on pypy-...@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 > >Hi, Laura, >

Re: memory control in Python

2015-08-17 Thread Ping Liu
On Saturday, August 15, 2015 at 11:56:22 AM UTC-7, Laura Creighton wrote: > 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.

Re: memory control in Python

2015-08-15 Thread Laura Creighton
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 bind

Re: memory control in Python

2015-08-15 Thread Mark Lawrence
On 15/08/2015 18:28, Terry Reedy wrote: On 8/15/2015 3:21 AM, dieter wrote: Ping Liu writes: ... For small cases, Python works well. But if we consider longer time period. then it would fail due to the memory usage issues. We have tested several case studies to check the memory use for differe

Re: memory control in Python

2015-08-15 Thread Terry Reedy
On 8/15/2015 3:21 AM, dieter wrote: Ping Liu writes: ... For small cases, Python works well. But if we consider longer time period. then it would fail due to the memory usage issues. We have tested several case studies to check the memory use for different time period, including 1) 2 hours in o

Re: memory control in Python

2015-08-15 Thread dieter
Ping Liu writes: > ... > For small cases, Python works well. But if we consider longer time period. > then it would fail due to the memory usage issues. We have tested several > case studies to check the memory use for different time period, including > 1) 2 hours in one day, 2) 24 hours in one da