Skip to content

Conversation

flavorjones
Copy link
Member

This PR eliminates needless operations on:

  • the attributes of a node that has been removed
  • the contents of an attribute that has been removed

This should improve performance by eliminating unneeded scrubbing of attributes.
This should improve performance by eliminating needless sanitization
of attributes that are already removed.
@flavorjones flavorjones force-pushed the flavorjones-minimize-operations branch from 9de78a5 to b4efdad Compare August 13, 2024 15:22
@flavorjones
Copy link
Member Author

@rafaelfranca I'm going to merge this, but I could use your 👀 on it before I include it in a release.

@flavorjones flavorjones merged commit 9250229 into main Aug 13, 2024
11 checks passed
@flavorjones flavorjones deleted the flavorjones-minimize-operations branch August 13, 2024 15:26
@flavorjones
Copy link
Member Author

@rafaelfranca Just a heads up that a new rails-html-sanitizer release is probably going out this week, and this change will be in it.

flavorjones added a commit that referenced this pull request Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant