home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15310 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.5 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!yale.edu!ira.uka.de!smurf.sub.org!news
  2. From: urlichs@smurf.sub.org (Matthias Urlichs)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: updating window text / getting text lines from buffer
  5. Date: 10 Sep 1992 13:38:30 +0200
  6. Organization: University of Karlsruhe, FRG
  7. Lines: 21
  8. Message-ID: <18nc3mINNov9@smurf.smurf.sub.org>
  9. References: <86967@netnews.upenn.edu> <1992Aug25.232449.12720@kronos.arc.nasa.gov> <zben-280892150237@zben-mac-ii.umd.edu>
  10. NNTP-Posting-Host: 127.0.0.1
  11.  
  12. In comp.sys.mac.programmer, article <zben-280892150237@zben-mac-ii.umd.edu>,
  13.   zben@ni.umd.edu (Charles B. Cranston) writes:
  14. > In article <1992Aug25.232449.12720@kronos.arc.nasa.gov>,
  15. > joshr@kronos.arc.nasa.gov (Joshua Rabinowitz-Summer-91) wrote:
  16. > > a file documented somewhere in IM for getting the filemanager to
  17. > > parse files into lines delimited by any desired char ('\n' in this case)
  18. >  
  19. [ PBRead{A}Sync example deleted ]
  20.  
  21. Depending on what you're doing, though, it may be a lot faster if you
  22. allocate a largish buffer and just read your lines out of it.
  23. PBRead is _slow_ if used unbuffered. I once wrote a TIFF reader and dropping
  24. my own stupid buffer into the read procedure made the file reader five times
  25. faster.
  26.  
  27. -- 
  28. Why does the porridge bird lay her egg in the air?
  29. -- 
  30. Matthias Urlichs  --  urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de   /(o\
  31. Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany  --  +49-721-9612521     \o)/
  32.