You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally rubys/nokogumbo#145, please read that issue for an in-depth conversation.
For HTML5 documents, #to_s is much slower than native libxml2 serialization. However, libxml2 gets many things wrong which is why Nokogumbo (and now Nokogiri::HTML5) implemented HTML5.serialize_node_internal.
Some likely next steps:
profile the current method to get a sense for how much slower it is (which is an input into the decision of when to default to HTML5)
see if we can improve the existing Ruby implementation
potentially re-implement the method in C if that would be compellingly faster
The text was updated successfully, but these errors were encountered:
Please describe the issue
Originally rubys/nokogumbo#145, please read that issue for an in-depth conversation.
For HTML5 documents,
#to_s
is much slower than native libxml2 serialization. However, libxml2 gets many things wrong which is why Nokogumbo (and now Nokogiri::HTML5) implementedHTML5.serialize_node_internal
.Some likely next steps:
The text was updated successfully, but these errors were encountered: