Skip to content

Conversation

@dr0i
Copy link
Member

@dr0i dr0i commented Nov 4, 2013

The use of a Set instead of a List avoids redundant values by ensuring the uniqueness of values.

You may want at first to cherry pick 2fb06df to test against the actual master to understand the problem. The test will result in 2 hits, not the expected 1.

More details:
Using Simple Character Classes, as introduced with #135, in combination with the OR pattern can lead to send redundantly multiple same values via Metamorph. E.g. a matching of "412-1.a" with metamorph <data source="41[278][-abcu][-12].[ag]|61[36][-abcu][-12].a" name="foo"> results in more than 3000 times sending "foo" (run MabXml2lobidTest of lobid/lodmill#245 to reproduce).

@dr0i
Copy link
Member Author

dr0i commented Nov 5, 2013

@cboehme Indeed, and thanks! Changed that.

@cboehme cboehme merged commit c32cf3b into metafacture:master Nov 6, 2013
blackwinter pushed a commit that referenced this pull request Dec 13, 2024
blackwinter pushed a commit that referenced this pull request Dec 13, 2024
And rename related folders
blackwinter pushed a commit that referenced this pull request Dec 13, 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.

2 participants