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

Performance Improvements #1109

Merged
merged 1 commit into from
Jul 18, 2016
Merged

Performance Improvements #1109

merged 1 commit into from
Jul 18, 2016

Conversation

tpendragon
Copy link
Contributor

Shares an in-memory repository between the LDP graph and the AF::Base's
resource. Reduces graph copying by a significant amount.

Also adds an ids reader to ordered associations which doesn't instantiate objects.

Shares an in-memory repository between the LDP graph and the AF::Base's
resource. Reduces graph copying by a significant amount.
@@ -43,7 +43,7 @@ def resource
# Appending the graph at the end is necessary because adding it as the
# parent leaves behind triples not related to the ldp_source's rdf
# subject.
@resource ||= self.class.resource_class.new(@ldp_source.graph.rdf_subject, @ldp_source.graph) << @ldp_source.graph
@resource ||= self.class.resource_class.new(@ldp_source.graph.rdf_subject, data: @ldp_source.graph.send(:graph).data)
Copy link
Member

Choose a reason for hiding this comment

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

Should a ticket be opened upstream to change the visibility to public?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@no-reply Should we make AT::Resource's graph public, or just delegate data?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jcoyne jcoyne merged commit f0c76dc into master Jul 18, 2016
@jcoyne jcoyne deleted the test_speed_updates branch July 18, 2016 16:19
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.

2 participants