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


Groups > comp.soft-sys.math.mathematica > #14467

Re: Simple program leaking memory - why?

From Joe Gwinn <joegwinn@comcast.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Simple program leaking memory - why?
Date 2013-05-11 06:27 +0000
Message-ID <kmkobs$pbk$1@smc.vnet.net> (permalink)
References <kmabu3$qdj$1@smc.vnet.net> <kmd1ag$4km$1@smc.vnet.net> <kmfks5$bqt$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


Gabe,

In article <kmfks5$bqt$1@smc.vnet.net>, Gabriel Redner
<gredner@gmail.com> wrote:

> Hi Joe,
> 
> I don't see how this could be the issue.  All of the statements have
> semicolons after them, and in any case I've tried changing $HistoryLength
> with no effect.

The semicolons prevent printing, not generation.

If you did $HistoryLength=0 early in the computations, with a clean
start (exit Mathematica and launch Mathematica) and the problem persists, then it is
probably some other cause.

The most general way to figure out what's going on is to divide the
notebook into two notebooks (communicating via files if necessary) and
see which half leaks.  Do this recursively.  If neither half leaks, the
cause is something in or near the cut point.  This approach is modeled
on binary search, and is very fast albeit manual.

Joe Gwinn

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Simple program leaking memory - why? gredner@gmail.com - 2013-05-07 07:53 +0000
  Re: Simple program leaking memory - why? Joe Gwinn <joegwinn@comcast.net> - 2013-05-08 08:10 +0000
    Re: Simple program leaking memory - why? Gabriel Redner <gredner@gmail.com> - 2013-05-09 07:56 +0000
      Re: Simple program leaking memory - why? Joe Gwinn <joegwinn@comcast.net> - 2013-05-11 06:27 +0000
  Re: Simple program leaking memory - why? Roland Franzius <roland.franzius@uos.de> - 2013-05-13 07:47 +0000

csiph-web