home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 174 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1010 b 

  1. Path: sn.no!not-for-mail
  2. From: ilan@sn.no (Ilan Sharoni)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Which would be faster?
  5. Date: 4 Jan 1996 05:11:16 +0100
  6. Organization: SN Internett
  7. Message-ID: <4cfk14$5eh@sinsen.sn.no>
  8. References: <dave.0mtr@eclipsnzmanawatu.gen.nz>
  9. NNTP-Posting-Host: sinsen.sn.no
  10. X-Newsreader: THOR 2.0 (SOUP) *UNREGISTERED*
  11.  
  12. On 02-Jan-96 18:03:32, Dave Dustin (dave@eclipsnz.manawatu.gen.nz) Wrote:
  13. >I was just wondering, which of these two methods would be fastest:
  14.  
  15. >1> Closing a window, then opening a new one with a different size/position
  16.  
  17. >2> Resizing a window to a new size/position, then clearing the
  18. >   contents, currently using EraseRect(), of the window ready for
  19. >   putting new data into window.
  20.  
  21.  
  22. >--
  23. >Dave
  24.  
  25.  
  26. The best way to find out is to try.
  27. The Amiga has 3 timers, and if you use SAS/C, you can alse run your test
  28. through the profiler.
  29. Make a loop of 100 times for each case, and see yourself.
  30. If you want, I have somewere here a code I wrote comparing 2 loops.
  31.