Re: How to count lines in a file that meet criteria?

From: deko (nospam_at_hotmail.com)
Date: 07/15/04


Date: Thu, 15 Jul 2004 21:50:14 GMT


> As you are only parsing it line by line, i don't see why you would load
> the whole file in memory first...

Is it resource intensive to read a file into memory with file($myfile)? How
big of a file is too big? What do you think the performance penalty is for
a 500K file? How about a 2Mg file? Are there any benchmarks? Isn't the
script faster when workig with an array, since it's all in memory?



Relevant Pages

  • Re: Memory limit reached with Windows Mobile
    ... That would explain the memory problem - you just can't do that. ... You have to load stuff when it's ... All native DLLs get loaded ...
    (microsoft.public.pocketpc.developer)
  • Re: Memory limit reached with Windows Mobile
    ... That would explain the memory problem - you just can't do that. ... Once I reached the 12 Mb limit, I cannot load any DLLs, yet if I ... Actually, simply by loading our 18 Native DLLs, we reduce the Virtual ...
    (microsoft.public.pocketpc.developer)
  • Re: Generating one table with a terabyte of data
    ... Take any simple string matching issues and run them as external C code on the files before loading. ... not match the job but can be adjusted for greater performance by changing memory type or adjusting IO layouts. ... them after a bulk load. ... Another thing is to split the updates across file sets. ...
    (microsoft.public.sqlserver.dts)
  • Re: fps modding
    ... > Yeah the memory usage used to be really high for no reason - but they've ... hl2 without it bothering to log in and such. ... one can't expect new games to load as ... >> rebuild and load a map. ...
    (comp.games.development.programming.misc)
  • Re: major iis5 asp performance problems
    ... takes to load, ... memory and dip into virtual memory, at which point hard-drive thrashes and ... is why the app gets to 50-60MB. ... >>- IIS performace tab settings ...
    (microsoft.public.inetserver.iis)