Re: Compilation: Avoiding inlining
- To: mathgroup at smc.vnet.net
- Subject: [mg121563] Re: Compilation: Avoiding inlining
- From: David Bailey <dave at removedbailey.co.uk>
- Date: Tue, 20 Sep 2011 06:08:14 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201109171027.GAA26060@smc.vnet.net> <j57879$jbs$1@smc.vnet.net>
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: m00;While[m>0,cRHS[0.1,x0];m--;]//AbsoluteTiming 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 http://www.dbaileyconsultancy.co.uk
- References:
- Re: Compilation: Avoiding inlining
- From: DmitryG <einschlag@gmail.com>
- Re: Compilation: Avoiding inlining