[nycphp-talk] Fastest PHP Writing
consult at covenantedesign.com
Wed Mar 17 21:45:21 EDT 2010
Michael B Allen wrote:
> Hi Ed,
> I very much doubt exec-ing and then backticking (which is forks and
> then execs again) would achieve the desired result.
> One thing that might, would be to write a long-lived daemon that opens
> the file(s) being appended to and waits for data on a named pipe. PHP
> callers can just open the pipe, write data to it, close and move on.
> The deamon would read the data and write it to the desired descriptor.
> Meanwhile the calling PHP process is probably off doing other things
> by then.
Sorry I wasn't more clear in my OP, That was a list of the various
writing mechanisms I am comparing... not the procedural order of the code.
<img src="http://covenantedesign.com/logo.jpg" border ="0">
995 Maple Hill Road
Castleton, New York 12033
Consult at CovenanteDesign.com
More information about the talk