home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!utcsri!newsflash.concordia.ca!sifon!thunder.mcrcim.mcgill.edu!mouse
- From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
- Subject: Re: Reasons for using C vs. Fortran or vic
- Message-ID: <1992Nov15.201555.20678@thunder.mcrcim.mcgill.edu>
- Organization: McGill Research Centre for Intelligent Machines
- References: <1992Nov12.205823.13951@u.washington.edu> <1992Nov13.162451.13049@zia.aoc.nrao.edu>
- Date: Sun, 15 Nov 92 20:15:55 GMT
- Lines: 16
-
- In article <1992Nov13.162451.13049@zia.aoc.nrao.edu>, cflatter@nrao.edu (Chris Flatters) writes:
-
- > 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.
-
- der Mouse
-
- mouse@larry.mcrcim.mcgill.edu
-