home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!usc!srhqla!quest!kdq
- From: kdq@quest.UUCP (Kevin D. Quitt)
- Newsgroups: comp.lang.c
- Subject: Re: Reasons for using C vs. Fortran or vic
- Message-ID: <0i5auB1w165w@quest.UUCP>
- Date: 16 Nov 92 00:57:56 GMT
- Article-I.D.: quest.0i5auB1w165w
- References: <1992Nov15.201555.20678@thunder.mcrcim.mcgill.edu>
- Reply-To: srhqla!quest!kdq
- Organization: Job quest (805) 251-8210, So Cal: (800) 400-8210
- Lines: 18
-
- mouse@thunder.mcrcim.mcgill.edu (der Mouse) writes:
- > In article <1992Nov13.162451.13049@zia.aoc.nrao.edu>, cflatter@nrao.edu (Chri
- > > Storing arrays by column or by row doesn't make any difference
- > > whatsoever to the speed of matrix operations: it is merely a notation
- > > change.
- > This is true only in the abstract. I have experienced (not just heard
- > about) multiple orders of magnitude speed differences, because going
- > through arrays "the wrong way" had catastrohpically bad VM behavior:
- > essentially, every access involved a page fault. Doing it "the right
- > way" stepped through VM in a nice sequential way, with minimal paging.
-
- You've misunderstood. *Storage order* makes no difference, as long
- as the *access order* matches. What you've described is what happens
- in any language when the wrong order is used.
-
-
- _
- Kevin D. Quitt 96.37% of all statistics are made up. srhqla!quest!kdq
-