-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Description
LocalName::new
called for something that isn't in https://github.com/servo/html5ever/blob/master/markup5ever/local_names.txt locks a global Mutex. As LocalName::new
is called for every class in Element::new
, and most classes are unlikely to be in that list, this means that multithreading is much less of a win for HTML parsing than it should be. While it's a breaking change and probably not the best approach, I've switched to using Strings locally, which gives me about a 10% performance improvement. My program's performance is still dominated by HashSet
construction, though. It might be faster to intern the entire HashSet<String>
s per-document.
Metadata
Metadata
Assignees
Labels
No labels