[xwiki/xwiki-commons] b67ce8: XCOMMONS-2349: Improve performance of AttributeFil...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-commons Commit: b67ce8c3d0f900e678383f8a08480f26cbb109dd https://github.com/xwiki/xwiki-commons/commit/b67ce8c3d0f900e678383f8a08480f... Author: Michael Hamann <[email protected]> Date: 2026-06-25 (Thu, 25 Jun 2026) Changed paths: M xwiki-commons-core/xwiki-commons-xml/src/main/java/org/xwiki/xml/internal/html/filter/AttributeFilter.java Log Message: ----------- XCOMMONS-2349: Improve performance of AttributeFilter in HTMLCleaner (#159) * Replace XPath by simple loop over all elements. * Make sure that replaced attributes are sorted lexicographically to guarantee deterministic results. * Cache the elements to avoid quadratic running time due to DOM modifications. * Fix > 0 vs. isEmpty code style issue reported by Sonar. To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-commons/settings/notifications
participants (1)
-
XWiki Notifications