Instead of doing immediate removal during iteration, switch to annotation. This should lead to simpler debugging and testing with only a slight drop in performance.
But you cannot annotate HTML comments... so some filters would annotate and others would not. Which I guess is saying that some filters only have a prune step?
Instead of doing immediate removal during iteration, switch to annotation. This should lead to simpler debugging and testing with only a slight drop in performance.