Skip to content
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

dedupers: allow deduping all lists recursively #87

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

michamos
Copy link
Contributor

No description provided.

exclude_keys (Container[str]): key names to ignore for deduplication
dedupe_top_level (bool): whether the top-level list should be deduplicated too
"""
squared_dedupe_len = 10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make sense to have this configurable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it? is anyone going to run microbenchmarks to optimize this value for each specific use case? it's just a performance optimization (that I copied over from inspire-dojson), it doesn't affect the results.

@drjova drjova merged commit 5224de6 into inspirehep:master Nov 22, 2023
4 checks passed
@michamos michamos deleted the add-dedupe-all branch November 22, 2023 13:48
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