View Single Post
Old 09-04-2006, 01:12 AM   #2 (permalink)
jaeusm
 
Software Developer

Join Date: Mar 2006

Location: Columbus, OH

Posts: 569

jaeusm is on a distinguished road

Default

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.
jaeusm is offline