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

[REBOL] Re: byte frequencies

From: g:santilli:tiscalinet:it at: 7-Jul-2001 14:40

Hello Joel! On 06-Lug-01, you wrote: JN> ------ test file size ------ JN> Function 1 Mb 2 Mb 4 Mb 8 Mb JN> -------- ---- ---- ---- ---- JN> cfdir 3.38 3.71 3.75 3.84 JN> cfcpy 1.00 1.00 1.00 1.00 JN> cfbuf 1.08 1.06 1.10 1.06 IMHO, CFBUF is likely to "explode" for files larger than current available memory (because of swapping), but this is probably very platform dependend. CFDIR is probably slow because, with /DIRECT, it calls lowlevel OS funtions to read from the file for each pick, reading a char at a time. If the OS is not doing buffering internally, I'm not surprised it is really so slow. CFCPY is definitely the way to go to read from (very) large files IMHO. Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/