Skip to content

[dispatcher] Use more efficient iteration in matching-primary-pairs #154

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexander-yakushev
Copy link
Contributor

Same reasoning as #152 – non-cached dispatcher still matters; and a reduce-kv is more optimized for iterating maps than a generic for. I'm deliberately not using transients to accumulate because I assume that absolute most matching method lists will be tiny (a few elements), and the overhead of transients outweighs regular vectors on such small inputs.

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.

1 participant