pluggable html parser
-
rb2k
Here are some performance benchmarks.
Switching from CSS to xpath also results in speed boosts:(tl;dr: hpricot (xpath) took: 3.599083
hpricot (xpath, no href) took: 3.283622
hpricot (css) took: 4.996853
nokogiri (xpath) took: 4.169071
nokogiri (css_nocontent) took: 4.372877
nokogiri (css) took: 4.494918
nokogiri (xpath no href) took: 3.861592
) -
chris (at chriskite)
- State changed from new to resolved
- Assigned user set to chris (at chriskite)
Thanks for your patch, I've incorporated your change to parse links with xpath instead of CSS.
I don't plan to include pluggable parser support for a couple of reasons: it increases complexity of the codebase without giving much in return, and potentially ties the project to using a restricted API (i.e. only what is common to Nokogiri and hpricot).
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.