View Single Post
Old 09-04-2006, 01:34 PM   #3 (permalink)
dominicanpapi82
 
Newb Techie

Join Date: Apr 2005

Posts: 5

dominicanpapi82

Default

Quote:
Originally posted by jaeusm
In theory, converting this code to PHP should be faster, as CGI requires an external process to start up and run. Again, in theory.

As for the actual algorithm, it may be a bit more efficient to read in the entire file and call the print function once for each buffer. That will cut out all the function call overhead, which is called hundreds of times currently.
Unfortunately I don't know any PHP.

For big files, I know that it might slow down the system if I print the entire file, but is 600 lines "large"?
dominicanpapi82 is offline