-
Notifications
You must be signed in to change notification settings - Fork 51
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
Conversation
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)) |
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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.
@darwin @MawiraIke if possible, we would love to see this merged soon because it delivers needed improvements for re-frame-10x |
@mike-thompson-day8 thanks for bringing this up. I forgot to get back to it. Will look into it over the weekend. Thanks. |
This PR fixes #65