Perl-Sensitive Sunglasses | |
PerlMonks |
WWW::Mechanize::Firefox latency using RemoteObjectby hansendc (Novice) |
on Apr 03, 2011 at 16:32 UTC ( [id://897212]=perlquestion: print w/replies, xml ) | Need Help?? |
hansendc has asked for the wisdom of the Perl Monks concerning the following question:
I have some code basically doing this:
I'm using an existing form, and filtering some bits of it out, and spitting out HTML which is approximately the same on the other end. The _real_ page is too slow to load for me, so I prefer to just load my fake form and submit _it_. This worked OK with plain ol' WWW::Mechanize. But, Mechanize::Firefox takes many seconds to do the same thing. It isn't CPU bound, though. There just seem to be a lot of transactions back and forth with the browser when I do this. I assume that each of the $foo->{bar} accesses is getting morphed in to a few calls in to the browser, and they add up to be significant. Any thoughts on reducing the number of transactions, reducing the latency, or quicker ways to do this? Well, I figured it out. Short story, the kernel is holding on to small amounts of data trying to increase throughput overall. More details here: http://groups.google.com/group/mozlab/browse_thread/thread/f7389b14bc1426ad?hl=en
Back to
Seekers of Perl Wisdom
|
|