Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Global array operations: a performance hit?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
glen herrmannsfeldt  
View profile  
 More options Jun 17 2008, 8:36 pm
Newsgroups: comp.lang.fortran
From: glen herrmannsfeldt <g...@ugcs.caltech.edu>
Date: Tue, 17 Jun 2008 16:36:27 -0800
Local: Tues, Jun 17 2008 8:36 pm
Subject: Re: Global array operations: a performance hit?
Dennis Wassel wrote:

(snip, and previously snipped DO vs. array expressions)

> I'm not a compiler specialist but AFAIK, array operations should not
> usually be slower than explicit loop constructs.

To make a fair comparison, it should be separate DO loops
vs. array operations, and separate DO loops vs.
a single DO loop.  Then you can separate the difference
due to memory access patterns and actual instructions.

My usual rule is that simple array operations are better than
(or at least as good as) DO loops, but more complicated ones
are slower.  (Especially if temporary arrays are used.)

-- glen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.