MathGroup Archive 2011

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

Search the Archive

Re: Compilation: Avoiding inlining

  • To: mathgroup at
  • Subject: [mg121563] Re: Compilation: Avoiding inlining
  • From: David Bailey <dave at>
  • Date: Tue, 20 Sep 2011 06:08:14 -0400 (EDT)
  • Delivered-to:
  • References: <> <j57879$jbs$>

On 19/09/2011 12:14, Oliver Ruebenkoenig wrote:
> On Sat, 17 Sep 2011, DmitryG wrote:
>> Hi Oliver,
>> thank you for your response! I am interested now in the systems of
>> equations that are non-vectorizable.

I explored your code a bit, and it would seem that the function cRHS is 
called 2000 times. I wondered if most of the time was being spent in the 
function rather than the DE solving code itself, and it would seem that 
this is probably the case. I tried:


This gave a timing that was little less than the whole computation.

(I actually scaled things up a bit, because I prefer to do timing 
experiments which are scaled to last about 20 secs to minimise jitter 
from other sources.)

David Bailey

  • Prev by Date: Re: Styling initialization cells
  • Next by Date: Re: Changing excel table with Wolfram Mathematica
  • Previous by thread: Re: Compilation: Avoiding inlining
  • Next by thread: Re: Compilation: Avoiding inlining