the large file challenge

Richard Gaskin ambassador at fourthworld.com
Sun Nov 10 14:38:00 EST 2002


Sadhunathan Nadesan wrote:

> | 
> | One last note:
> | 
> | Be careful of using <read from file xxx for yyy>
> | 
> | If you do not read for "lines", you run the risk of cutting a line in half
> on 
> | the spot where your magic string occurs.
> | 
> | So always use <read from file xxx for yyy LINES>
> | 
> | HTH.
> | Brian
> | 
> 
> Good point.  For this particular use of the
> program a close count is ok - no problem if
> it's not perfect but clearly, that might matter
> in other instances.
> 
> It is interesting that the different algorithms
> are varying slightly with the count, probaby
> for reasons like you mention.

My hunch is that reading for lines is slower than reading a specified number
of chars, since with lines it needs to evaluate each incoming character to
determine if it's a return -- Scott, am I right or should they be about the
same?

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.0: Publish any database on any site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc




More information about the metacard mailing list