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
 
Craig Powers  
View profile  
 More options Jun 18 2008, 1:08 pm
Newsgroups: comp.lang.fortran
From: Craig Powers <craig.pow...@invalid.invalid>
Date: Wed, 18 Jun 2008 13:08:26 -0400
Local: Wed, Jun 18 2008 1:08 pm
Subject: Re: Global array operations: a performance hit?

glen herrmannsfeldt wrote:
> Craig Powers wrote:
>> glen herrmannsfeldt wrote:

>>> If speed is that important, you might try reversing the
>>> subscript order (in the whole program).

>> I suspect, given the context, that outside of this initialization, the
>> subscripts are accessed in the correct order.

> That is the problem with posting only a small part.

> Though I might wonder if this is such a small part, how one
> could notice the speed difference.

It might be part of an outer loop that is executed many times.  I had
something of this nature happen in one of my programs---not down to the
subscripting, but simple initialization-to-zero.  A bunch of stuff
needed to be initialized to zero on each pass through the outer loop,
and doing it using DO loops (which also, incidentally, cut out
initialization of unused portions of a ragged array) realized a
substantial savings in program execution time for certain input sets.

> It seemed worth a reminder, just in case.

Certainly true.

 
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.