Skip to content
Prev 39242 / 63421 Next

function call overhead

On Wed, Feb 16, 2011 at 1:13 PM, Paul Gilbert
<pgilbert at bank-banque-canada.ca> wrote:
I worked on an application where a complex characteristic function was
computed over
and over again to compute a Fourier transform, and there was a very
significant performance
penalty to be paid by using myPgk::foo() compared with foo(). It was
recommended on this
list that I try the local assignment trick and it worked great.

Unfortunately this discourages the use of programming styles that are
more explicit and
easier to follow for the human reader. It also complicates the problem
of explicitly specifying
what version of "foo()" you really mean to use.

Dominick