MathGroup Archive 2010

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

Search the Archive

Re: Suggestions for improving speed

  • To: mathgroup at
  • Subject: [mg113331] Re: Suggestions for improving speed
  • From: Pierre Albarede < at>
  • Date: Sun, 24 Oct 2010 06:04:12 -0400 (EDT)
  • References: <i9uff5$rff$>

In Mathematica, procedural programming (with variables) is at least 10
times slower than functional programming (without variables and with
well chosen constants).  (Moreover, functional programming uses less
memory space.)   Variables, function calls and tests especially take a
lot of time.  Please read the documentation on functional programming.

Moreover, compiling might earn you another factor 10.  There is a
Compile function.

Hence, the rough factor 100 that you get, as compared with the
Mathematica function.

Good luck.

  • Prev by Date: More Mathematica CAN'T do than CAN???
  • Next by Date: Re: Variable number of arguments
  • Previous by thread: Suggestions for improving speed
  • Next by thread: Re: Suggestions for improving speed