Keep It Simple, Stupid | |
PerlMonks |
Re: WWW::Mechanize::Chrome VERY slow on xpath obtaining TDs of a TRby LanX (Saint) |
on Nov 26, 2022 at 13:58 UTC ( [id://11148398]=note: print w/replies, xml ) | Need Help?? |
I had a quick glimpse into the docs of ->xpath and found this passages and emphasized two parts
instead of //foo Querying relative to a node only works for restricting to children of the node, not for anything else. This is because we need to do the ancestor filtering ourselves instead of having a Chrome API for it.
two insights into potential bottlenecks so:
Of course this is all speculation as long as you can't provide an SSCCE ... :)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|