[
https://issues.apache.org/jira/browse/JENA-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15851438#comment-15851438
]
ASF GitHub Bot commented on JENA-1284:
--------------------------------------
Github user afs commented on the issue:
https://github.com/apache/jena/pull/212
@rvesse - so this is specific about `deleteFrom`. Good point that
`contains()` may be not low cost.
I have realized that we can use the fact that often there is no code
listing to events by calling `Graph.getEventManager().listening()`. The code
can have one path when events are needed, to get the perfect legacy contract,
and another path for when events are not needed because no code is listening.
> Improve GraphUtil operations by considering relative graph sizes.
> -----------------------------------------------------------------
>
> Key: JENA-1284
> URL: https://issues.apache.org/jira/browse/JENA-1284
> Project: Apache Jena
> Issue Type: Improvement
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
>
> Some of the bulk `GraphUtil` operations, `addInto` and `deleteFrom`, could be
> improved to loop on the smaller graph and have different algorithms depending
> on whether source or destination graph is smaller.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)