Taint mode slows down LWP::UserAgent->get significantly

Taint mode slows down LWP::UserAgent->get significantly

am 06.11.2007 19:44:45 von arz

Hi,

I've got a CGI script that retrieves an approx. 8MB file from a server
and does some checking on it before returning a result. I download the
file using LWP::UserAgent. I have taint-checking enabled by default to
verify CGI script arguments, but it appears taint-checking
significantly slows down my $ua->get(). With -T it takes about 8-9
seconds before $ua->get() returns. Without -T, it's about wire-speed.

Are taint-mode checks being done on all the HTTP data as it comes in?

Thanks!

Arnoud.