Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: WWW::Mechanize::Chrome VERY slow on xpath obtaining TDs of a TR

by ait (Hermit)
on Nov 25, 2022 at 15:46 UTC ( [id://11148389]=note: print w/replies, xml ) Need Help??


in reply to Re: WWW::Mechanize::Chrome VERY slow on xpath obtaining TDs of a TR
in thread WWW::Mechanize::Chrome VERY slow on xpath obtaining TDs of a TR

No, I haven't done more than simple measurements to pinpoint the delays in my own code. But because the delays in fetching the TDs in the context of a specific TR node are proportional (or maybe exponential) to the amount of TRs, it seems obvious that there's either a bug, or some intrinsic limitation in the way that xpath is implemented (e.g. re-parsing the whole page every time).

  • Comment on Re^2: WWW::Mechanize::Chrome VERY slow on xpath obtaining TDs of a TR

Replies are listed 'Best First'.
Re^3: WWW::Mechanize::Chrome VERY slow on xpath obtaining TDs of a TR
by marto (Cardinal) on Nov 25, 2022 at 16:07 UTC

    Benchmarking within Chrome developer tools should point you in the right direction, if this is way faster than the perl code running your script in the debugger should quickly let you know if this is a limitation or bug with the perl module.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-25 18:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found