|
|
|
|
|
by bbbbbbbbb
5533 days ago
|
|
> If the specification is to print to STDOUT, a web server needs to make a trick to capture the output using tie, PerlIO or anything else, just like FCGI.pm does, and that's inefficient. I see. That's a valid point.
So when I asked if by design the protocol would offer better performance, the answer is yes? Is this inefficiency so bad that changing it to an array ref
brings THAT much improvement though? It was easy to change the output but I will have to create a thin wrapper around FastCGI/PSGI to make it transparent.
something like this detection done in Mojo becomes necessary: # PSGI (Plack only for now)
return 'psgi' if defined $ENV{PLACK_ENV}; # CGI
return 'cgi' if defined $ENV{PATH_INFO} || defined $ENV{GATEWAY_INTERFACE};
well, that's not much work...I'll continue porting the app and see how it behaves. Thank you for your time. |
|