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

Path generation performance improvements #66

Merged
merged 4 commits into from
Mar 2, 2022

Conversation

MawiraIke
Copy link
Contributor

This PR fixes #65

path-info
;; if the previous item is an artificial vector, lets append to the path info but take the first item
;; in the vector as the path. (Explained in `mapping` above)
(and (map? (get-second-last-object-from-current-history))
Copy link
Contributor Author

@MawiraIke MawiraIke Jan 13, 2022

Choose a reason for hiding this comment

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

Removed this double call.

(mapping? (get-second-last-object-from-current-history) parent-object))
(conj (or path-info []) (first parent-object))
;; the current object is an item within the parent object
(some? (build-path-segment parent-object object))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this double call. Takes long to fetch index of items in very large maps so limit to one call.

@mike-thompson-day8
Copy link

@darwin @MawiraIke if possible, we would love to see this merged soon because it delivers needed improvements for re-frame-10x

@darwin
Copy link
Member

darwin commented Feb 23, 2022

@mike-thompson-day8 thanks for bringing this up. I forgot to get back to it. Will look into it over the weekend. Thanks.

@darwin darwin merged commit 5b798a3 into binaryage:master Mar 2, 2022
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.

Path generation taking long in extremely large maps
3 participants