Re: How to count lines in a file that meet criteria?
From: deko (nospam_at_hotmail.com)
Date: 07/15/04
- Next message: Gordon Burditt: "Re: register_globals - turning on"
- Previous message: Piotr Wolski: "number of rows"
- In reply to: Tim Van Wassenhove: "Re: How to count lines in a file that meet criteria?"
- Next in thread: deko: "Re: How to count lines in a file that meet criteria?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
- Next message: Gordon Burditt: "Re: register_globals - turning on"
- Previous message: Piotr Wolski: "number of rows"
- In reply to: Tim Van Wassenhove: "Re: How to count lines in a file that meet criteria?"
- Next in thread: deko: "Re: How to count lines in a file that meet criteria?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|