home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16563 < prev    next >
Encoding:
Text File  |  1992-11-15  |  1.1 KB  |  26 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!utcsri!newsflash.concordia.ca!sifon!thunder.mcrcim.mcgill.edu!mouse
  3. From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
  4. Subject: Re: Reasons for using C vs. Fortran or vic
  5. Message-ID: <1992Nov15.201555.20678@thunder.mcrcim.mcgill.edu>
  6. Organization: McGill Research Centre for Intelligent Machines
  7. References: <1992Nov12.205823.13951@u.washington.edu> <1992Nov13.162451.13049@zia.aoc.nrao.edu>
  8. Date: Sun, 15 Nov 92 20:15:55 GMT
  9. Lines: 16
  10.  
  11. In article <1992Nov13.162451.13049@zia.aoc.nrao.edu>, cflatter@nrao.edu (Chris Flatters) writes:
  12.  
  13. > Storing arrays by column or by row doesn't make any difference
  14. > whatsoever to the speed of matrix operations: it is merely a notation
  15. > change.
  16.  
  17. This is true only in the abstract.  I have experienced (not just heard
  18. about) multiple orders of magnitude speed differences, because going
  19. through arrays "the wrong way" had catastrohpically bad VM behavior:
  20. essentially, every access involved a page fault.  Doing it "the right
  21. way" stepped through VM in a nice sequential way, with minimal paging.
  22.  
  23.                     der Mouse
  24.  
  25.                 mouse@larry.mcrcim.mcgill.edu
  26.