Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^10: WWW::Mechanize::Firefox delayed returns / slow

by mascip (Pilgrim)
on Apr 10, 2014 at 09:22 UTC ( [id://1081779]=note: print w/replies, xml ) Need Help??


in reply to Re^9: WWW::Mechanize::Firefox delayed returns / slow
in thread WWW::Mechanize::Firefox delayed returns / slow

I was assuming that ->{innerHTML} was already a string, but you're saying that it's an object, and it's the stringification that takes a long time? But... I didn't ask for it to be stringified yet.
  • Comment on Re^10: WWW::Mechanize::Firefox delayed returns / slow

Replies are listed 'Best First'.
Re^11: WWW::Mechanize::Firefox delayed returns / slow
by Corion (Patriarch) on Apr 10, 2014 at 09:56 UTC

    No - all properties are just tied wrappers for Javascript objects living on the other side in Firefox. Every access and function call has to travel from Perl to Firefox and back, and that is slow.

    If you are interested in the nasty details, I think that MozRepl::RemoteObject somewhat goes into the nasty details, and I gave one talk on the subject, albeit in German only. I'm not sure if the Google translation of the slides are usable...

      Thank you :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1081779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-26 06:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found