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

observable) replace objectLookup with canonical Map #171

Merged
merged 2 commits into from May 11, 2022
Merged

Conversation

brianmhunt
Copy link
Member

Change the custom, archaic objectLookup type to a Map. This can have dramatic performance increase as it changes the computational complexity of toJS from O(n²) to O(n) over the object/array size.

Closes #170

@brianmhunt
Copy link
Member Author

@danieldickison @mbest I'd be grateful for a sanity review/approval here, if you have a moment.

@brianmhunt brianmhunt merged commit 41ce562 into main May 11, 2022
@brianmhunt brianmhunt deleted the 170-O-1-lookup branch May 11, 2022 13:42
Copy link
Collaborator

@danieldickison danieldickison left a comment

Choose a reason for hiding this comment

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

Bit late (sorry) but this also looks good to me.

@brianmhunt
Copy link
Member Author

@felipesantoz Tagging for visibility.

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.

Change mappingHelpers objectLookup from an O(n) array to O(1) Map
3 participants