fix(parser): Improving CSS selecting memory usage by ~144%
and speed by ~2%
This commit is contained in:
@@ -142,3 +142,6 @@ class HTMLTranslator(TranslatorMixin, OriginalHTMLTranslator):
|
||||
@lru_cache(maxsize=256)
|
||||
def css_to_xpath(self, css: str, prefix: str = "descendant-or-self::") -> str:
|
||||
return super().css_to_xpath(css, prefix)
|
||||
|
||||
|
||||
translator_instance = HTMLTranslator()
|
||||
|
||||
Reference in New Issue
Block a user