process a BIG string
- From: "quamis@xxxxxxxxx" <quamis@xxxxxxxxx>
- Date: 5 Oct 2006 07:47:13 -0700
Hy,
i need to process every character in a file, so i open the file read
in buffers of about 8192bytes and process each buffer, then i write
the output to another file.
the problem is that with large files(>8Mb) i get a script error(Fatal
error: Maximum execution time of 30 seconds exceeded ).
i acess every character in the buffer with
$chr=ord($bufferIn{$i}); (where $i=0...8192)
seems like all he time the script consumes is in the for loop and the
chr/ord functions.
can i do something to speed things up?
is there any other way of acessing a single characher except
$bufferIn{$i} ?
.
- Follow-Ups:
- Re: process a BIG string
- From: Colin McKinnon
- Re: process a BIG string
- From: CptDondo
- Re: process a BIG string
- From: Erwin Moller
- Re: process a BIG string
- Prev by Date: Concurrent session issues. Currently our website can have only one window open. Help me solve this.
- Next by Date: Re: stats_standard_deviation
- Previous by thread: Concurrent session issues. Currently our website can have only one window open. Help me solve this.
- Next by thread: Re: process a BIG string
- Index(es):
Relevant Pages
|