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

[REBOL] Re: Large file compare

From: gabriele::colellachiara::com at: 8-Jun-2005 12:31

Hi Thorsten, On Wednesday, June 8, 2005, 11:53:08 AM, you wrote: TM> a: read %testfile1.txt TM> b: read %testfile2.txt Did you mean READ/LINES? TM> inboth: intersect a b TM> only_a: difference inboth a TM> only_b: difference inboth b TM> My question is, if there are better ways in rebol to achive the same with TM> lesser memory consumption?? Yes - don't load the whole files in memory. :-) Is the difference going to be big too? If so you may want to avoid keeping it in memory too. OTOH, if you have enough memory for the operation, doing it all in memory is going to be much faster. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: