From: Peter Shenkin <shenkin@still3.chem.columbia.edu>
Subject: Re: fortran error?
Date: 1998/03/20 [thread overview]
Message-ID: <3512931B.41C6@still3.chem.columbia.edu> (raw)
In-Reply-To: 6etspg$iov@bgtnsc02.worldnet.att.net
Dick Hendrickson wrote:
>
> Peter Shenkin wrote:
> >
> [snip]
> >
> > Craig Burley wrote:
> > >
> > > Peter Shenkin <shenkin@still3.chem.columbia.edu> writes:
> > ...
> > > The way I look at it, stack allocation is almost *never* a
> > > bottleneck in any real application, but *heap* allocation often
> > > is. ...
> >
> [snip]
> >
> > Yup. I agree with both of these points.
> >
> [snip]
>
> I'm not so sure it isn't (or won't be) a bottleneck. There are lots
> of real codes that call a very small procedure gazillions of times.
> Call overhead often dominates the run-time of the small procedure.
Yes, I agree. But stack allocation of *automatics* is not generally
the bottleneck here, and this is what both Craig and I were (I think)
referring to.
Most of us learned, even back in the F77 or earlier days, to
avoid calling functions gazillions of times; in-line expansion, or
the statement function, allows this to be done syntactically, though,
without incurring the cost you refer to, which is a real one.
-P.
--
************** In memoriam, Grandpa Jones, 1913-1998, R.I.P.
**************
* Peter S. Shenkin; Chemistry, Columbia U.; 3000 Broadway, Mail Code
3153 *
** NY, NY 10027; shenkin@columbia.edu; (212)854-5143; FAX: 678-9039
***
*MacroModel WWW page:
http://www.columbia.edu/cu/chemistry/mmod/mmod.html *
next prev parent reply other threads:[~1998-03-20 5:00 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-03-12 5:00 fortran error? Armin Leuprecht
1998-03-12 5:00 ` robin
1998-03-16 5:00 ` Steve Lionel
1998-03-17 5:00 ` Peter Shenkin
1998-03-17 5:00 ` Craig Burley
1998-03-17 5:00 ` Peter Shenkin
1998-03-18 5:00 ` Craig Burley
1998-03-19 5:00 ` Peter Shenkin
1998-03-19 5:00 ` Craig Burley
1998-03-20 5:00 ` Nick Maclaren
1998-03-20 5:00 ` Peter Shenkin
1998-03-20 5:00 ` Richard Maine
1998-03-20 5:00 ` Craig Burley
1998-03-20 5:00 ` Peter Shenkin
1998-03-23 5:00 ` Craig Burley
1998-03-23 5:00 ` Craig Burley
1998-03-23 5:00 ` Peter Shenkin
1998-03-24 5:00 ` Craig Burley
1998-03-24 5:00 ` Nick Maclaren
1998-03-23 5:00 ` Summary (I hope) failure of automatic allocation; was, " Peter Shenkin
1998-03-24 5:00 ` Craig Burley
1998-03-20 5:00 ` Nick Maclaren
1998-03-20 5:00 ` Richard Maine
1998-03-20 5:00 ` Dick Hendrickson
1998-03-20 5:00 ` Peter Shenkin [this message]
1998-03-20 5:00 ` Craig Burley
1998-03-20 5:00 ` Peter Shenkin
1998-03-23 5:00 ` Craig Burley
1998-03-18 5:00 ` Toon Moene
1998-03-18 5:00 ` Jeff Drummond
1998-03-19 5:00 ` Peter Shenkin
1998-03-18 5:00 ` Steve Lionel
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox