Skip to content

Don't emit duplicate subsequent occurrences #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2022
Merged

Conversation

olafurpg
Copy link
Member

Fixes #152. Supersedes #192. This fix doesn't prevent duplicate non-subsequent occurrences but that's fine because there are no functional differences between having more than one identical occurrences. It's still desirable to skip duplicate occurrences because 1) it makes the snapshot tests easier to review and 2) reduces the final index size, although I suspect it won't make a practical difference for the payload size.

Test plan

See updated snapshot tests.

@olafurpg olafurpg merged commit 8496b0d into main Oct 27, 2022
@olafurpg olafurpg deleted the olafurpg/duplicates branch October 27, 2022 14:35
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.

Snapshot output seems noisy; are we emitting needlessly redundant references?
2 participants