Re: forall and do loop



highegg wrote:

On one project (propeller aerodynamics), I have also wasted my time
for an experiment - I developed two versions of the code, one using
assumed shape arrays and array results and expressions and all that
performance-dangerous stuff, other using assumed size arrays with
storage associations and explicit loops and such stuff. In the end,
the running times were differing by 1.5% at most, and the "optimized"
code looked fairly more clunky (particularly using assumed size +
storage association instead of assumed shape+sections) and took more
time. On the other optimizing the real bootleneck (a numerical
integral evaluation) reduced runtime by 50% afterwards.
After that, I was convinced of the "Knuth's law".

This reminds me of two other "programming laws" (although I can't put a
name to either right now)

a) Not only does 10% of the code do 90% of the work; you are unlikely to
guess which 10% correctly. That's what profilers are for

b) The slowest part of the programming framework is the programmer
themself. The coding style should be optimised primarily around this fact

Richard
.



Relevant Pages

  • Re: newbie: capabilities of c++ in numerical computation
    ... >>1) Does object oriented programming introduce significant overhead as ... I personnaly think that arrays of doubles are better at low ... fortran or c library routines from your code. ... >>calling fftwlibraries? ...
    (comp.lang.cpp)
  • Re: Overloaded Methods called with null
    ... The rules are not for general programming, per se, but ... NullPointerExceptions are obtuse to the Java newbie, I agree, but the ... Using Lists instead of arrays and initializing arrays with ...
    (comp.lang.java.programmer)
  • Re: How do *you* use arrays?
    ... I too am quite conservative David, but it seems my conservitism manifests ... The fact is, as you mentioned, all computing is based on arrays at some ... > Designing a course of instruction is similar to designing a ... >> the fundamental concept of arrays in a GENERALIZED and BASIC programming ...
    (microsoft.public.access.modulesdaovba)
  • Re: Structured Coding
    ... concepts (such as arrays and strings). ... I only have my own "learning" experience to base my ... Programming C# assumes some experience with a related language ...
    (comp.lang.cobol)
  • Re: How do *you* use arrays?
    ... I am a professional developer, and I was a professional teacher ... Designing a course of instruction is similar to designing a ... > the fundamental concept of arrays in a GENERALIZED and BASIC programming ...
    (microsoft.public.access.modulesdaovba)