You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a problem with memory consumption on CGI::Parse::PSGI::parse_cgi_output and looked inside. I suggest to split support for filehandles and scalar refs into 2 separate subs and to stop using HTTP::Response. The code provided is about 13 times faster on small response (8K) and 15% times faster on large response (about 10Mb). Also the memory consumption is reduced on 15% on large response (and in becomes really great when we inline this code to avoid copying $stdout_buffer).
What do you think about this code/idea? parse_cgi_output.txt
The text was updated successfully, but these errors were encountered:
Hi Tokuhiro,
Thank you for your work on PSGI.
I had a problem with memory consumption on CGI::Parse::PSGI::parse_cgi_output and looked inside. I suggest to split support for filehandles and scalar refs into 2 separate subs and to stop using HTTP::Response. The code provided is about 13 times faster on small response (8K) and 15% times faster on large response (about 10Mb). Also the memory consumption is reduced on 15% on large response (and in becomes really great when we inline this code to avoid copying $stdout_buffer).
What do you think about this code/idea?
parse_cgi_output.txt
The text was updated successfully, but these errors were encountered: