Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Memory usage - Extract vs Select

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93217] Re: Memory usage - Extract vs Select
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Fri, 31 Oct 2008 03:07:29 -0500 (EST)

On 10/30/08 at 2:03 AM, tomfabtastic at hotmail.com wrote:

>Also, is there a way to tell how much memory is being used by a
>mathematica command ?

No. Nor can there be in general. The amount of memory a given
command needs for intermediate steps will often depend on
specifics of the arguments it has to act on. For example,
consider just plotting a function. Since Mathematica samples the
function more where it bends, very non-linear functions will
require more memory than linear functions.

There are ways to determine how much memory is used to store an
expression or how much memory is used by any sequence of
commands after they have completed. ByteCount gives the number
of bytes needed to store a particular expression. MemoryInUse
gives the amount of memory in use at the time this command is
executed. Obviously changes in the value returned by MemoryInUse
are the amount of memory consumed by operations done between
uses of MemoryInUse.


  • Prev by Date: Frustration with opaque functions in Mathematica
  • Next by Date: Re: eps and pdf export of Graphic3D
  • Previous by thread: Memory usage - Extract vs Select
  • Next by thread: eps and pdf export of Graphic3D