Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: byte frequencies

From: joel:neely:fedex at: 6-Jul-2001 13:38

Jeff Kreis wrote:
> If you assume that NULL chars in your files are infrequent you > can just use a 1-based index. >
It is not an option simply to ignore some character values.
> If you're handling very large files you'd want to use: > > fi: open/binary/direct fi > > while [ch: pick fi 1][ > .... > fi: next fi > ] > > That will be much faster over some minimum size. >
Perhaps I'll have a chance to do some benchmarking to get a clue as to what qualifies as "some minimum size". -jn- ___________________________________________________________________ The purpose of computing is insight, not numbers! - R. W. Hamming joel'dot'neely'at'fedex'dot'com