home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / apple2 / 24422 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  2.8 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!dlyons
  2. From: dlyons@Apple.COM (David A Lyons)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: speed of text applications...
  5. Message-ID: <74635@apple.apple.COM>
  6. Date: 24 Nov 92 04:34:38 GMT
  7. References: <fmlin.2amy@terapin.com>
  8. Organization: Apple Computer Inc., Cupertino, CA
  9. Lines: 50
  10.  
  11. In article <fmlin.2amy@terapin.com> fmlin@terapin.com (Frank M. Lin) writes:
  12. >What does NiftyList use for I/O anyway?  It scrolls so FAST! I don't use it (
  13. >don't know how :), but I occationally call it up just to "feel" like a real
  14. >toolbox programmer :P
  15. >
  16. >If enter "???????????????????" or "llllllllllllllllllllll", NiftyList will then
  17. >print them on the screen _really_ quickly, faster anything I know on the GS.  I
  18. >notice that GSbug scrolls fast too ( gsbug is another "real programmers tool"
  19. >which I don't use :).  Why?  Is it because interrupts are disabled when you're
  20. >in CDA and/or GSbug?  Other CDA don't scroll anywhere near the speed of NL or
  21. >GSbug.
  22.  
  23. Interrupts are enabled while you're in GSBug or Nifty List; they both have
  24. their own routines to blast directly into screen memory.
  25.  
  26. GSBug *has* to do that, since you can be using GSBug to trace through the
  27. Text Tools, or the Console Driver, or whatever, one line at a time.  GSBug
  28. has to be pretty careful about how it calls the toolbox or OS.
  29.  
  30. Nifty List used to use the Text Tools (still does *when* you redirect output
  31. to a slot).  It didn't crawl, but it was slow enough to be a little annoying.
  32. I kept claiming I'd speed it up some day, and I kept not doing it.
  33.  
  34. Then one Saturday, Matt D doubted The Dave's Word that he could or would
  35. ever make it fast.  So in the wee hours of Sunday, January 13, 1991, I
  36. wrote some fast output routines.  As I recall it took 4 to 6 hours.  It
  37. wound up being 400 lines of assembly (15-20% comments).  Some of the time
  38. was fiddling with the rest of Nifty List to fit the new routines in--finding
  39. leftover calls to the Text Tools, etc.
  40.  
  41. There's no special trick.  The bulk of the speed comes from scrolling
  42. the screen quickly.  Once you assume you're on a GS and only worry about
  43. the 80x24 text screen, it's pretty easy.
  44.  
  45. I don't recommend everybody go out and write directly to the screen.  But
  46. for special-purpose tools like GSBug and Nifty List, it makes sense. 
  47.  
  48. Specifically, I do *not* agree with the FTA philosophy of re-inventing
  49. the wheel as a matter of principle.  Life is too short not to leverage
  50. off other people's work, or to do work which other people can build on.
  51.  
  52. I would prefer to see people build *better* tools for their own use
  53. and to give or sell to others, rather than avoiding tools.
  54.  
  55. -- 
  56. David A. Lyons, Apple Computer, Inc.      |   DAL Systems
  57. Apple II System Software Engineer         |   P.O. Box 875
  58. Internet:dlyons@apple.com                 |   Cupertino, CA 95015-0875
  59.  
  60. My opinions are my own, not Apple's.
  61.