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

Make item/layout collection dependencies finer-grained #1193

Merged
merged 4 commits into from Jul 1, 2017

Conversation

denisdefreyne
Copy link
Member

@denisdefreyne denisdefreyne commented Jul 1, 2017

Dependencies on the item/layout collection are currently all-or-nothing. Any item that directly or indirectly accesses @items or @layouts will have a a dependency on the entire collection of items/layouts. This means that adding a new item or a new layout will cause these items to be marked as outdated, even if they won’t depend on that specific new layout.

This PR makes @items[] and @items.find_all (same for @layout) generate finer-grained dependencies, which only depend on a subset of the collection of items (or layouts). This way, adding a new item or layout is less likely to cause other items to be recompiled.

@denisdefreyne denisdefreyne force-pushed the finer-doc-collection-dependencies branch 2 times, most recently from eecdebc to 1a12a41 Compare July 1, 2017 10:03
@denisdefreyne denisdefreyne force-pushed the finer-doc-collection-dependencies branch from 1a12a41 to 69f9585 Compare July 1, 2017 10:06
@denisdefreyne denisdefreyne force-pushed the finer-doc-collection-dependencies branch 3 times, most recently from 781b853 to 57619db Compare July 1, 2017 10:21
@denisdefreyne denisdefreyne force-pushed the finer-doc-collection-dependencies branch from c375313 to 218259e Compare July 1, 2017 10:31
@denisdefreyne denisdefreyne merged commit 71584db into master Jul 1, 2017
@denisdefreyne denisdefreyne deleted the finer-doc-collection-dependencies branch July 1, 2017 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant