From: already5chosen@yahoo.com   
      
   On Wed, 10 Dec 2025 15:07:30 GMT   
   scott@slp53.sl.home (Scott Lurndal) wrote:   
      
   > Michael Sanders writes:   
   > >On Sat, 6 Dec 2025 02:00:22 -0000 (UTC), Lew Pitcher wrote:   
   > >   
   > >> I should have added that I feel that you probably haven't really   
   > >> defined /what/ "text file" means, and that has interfered with   
   > >> the development of this function. As Keith pointed out, the task   
   > >> of distinguishing between a "text" file and a "binary" file is not   
   > >> easy. I'll add that a lot of the difficulty stems from the fact   
   > >> that there are many definitions (some conflicting) of what a "text"   
   > >> file actually contains.   
   > >   
   > >Yes. Here's my 2nd attempt following the template (of thinking)   
   > >you've suggested...   
   >   
   > The problem with all of your attempts is the performance   
   > issue. Success requires reading every single byte of the   
   > file, one byte at a time. The word 'slow' is not sufficient   
   > to describe how bad the performance will be for a very large   
   > file.   
   >   
   > At a minimum, dump the stdio double-buffered byte-by-byte   
   > algorithm and use mmap().   
   >   
      
   I suggest to do actual speed measurements before making bold   
   claims like above. Don't trust your intuition!   
      
   > In reality, I still don't see any benefit to this type of   
   > heuristic-based approach.   
   >   
      
   Neither do I. But OP is not doing it for us, but for himself.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|