You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some scenarios would benefit from an NodeMatcher that simply "does what I mean": Try all possible pairings of control/test nodes and pick the permutation that contains the least number of differences (and prefer "similar" over "different").
The ElementSelector interface is not suitable since it only sees pairs of nodes but in order to be useful the implementation needs to see all candidate nodes at once.
Probably such a NodeMatcher would require quite a bit of caching of decisions already made. It would also require knowledge of the DifferenceEngine it belongs, at least to the DifferenceEvaluator. On the other hand it should not use the specified ComparisonController and certainly not inform ComparisonListeners at all while searching for candidate matches.
Of course this option would be way more expensive than carefully chosen ElementSelectors, in particular for big documents with many siblings at more than one level of the tree. Therefore it shouldn't be the default choice.
The text was updated successfully, but these errors were encountered:
Some scenarios would benefit from an
NodeMatcher
that simply "does what I mean": Try all possible pairings of control/test nodes and pick the permutation that contains the least number of differences (and prefer "similar" over "different").The
ElementSelector
interface is not suitable since it only sees pairs of nodes but in order to be useful the implementation needs to see all candidate nodes at once.Probably such a
NodeMatcher
would require quite a bit of caching of decisions already made. It would also require knowledge of theDifferenceEngine
it belongs, at least to theDifferenceEvaluator
. On the other hand it should not use the specifiedComparisonController
and certainly not informComparisonListener
s at all while searching for candidate matches.Of course this option would be way more expensive than carefully chosen
ElementSelector
s, in particular for big documents with many siblings at more than one level of the tree. Therefore it shouldn't be the default choice.The text was updated successfully, but these errors were encountered: