[
https://issues.apache.org/jira/browse/JENA-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852210#comment-15852210
]
ASF GitHub Bot commented on JENA-1284:
--------------------------------------
Github user afs commented on the issue:
https://github.com/apache/jena/pull/212
Revision to `deleteFrom`: loop on src if (srcSize < 1000 || dstSize >
2*srcSize)
That is, when dst is small, do the loop/contains thing.
This is more conservative and so less disturbing existing code but catches,
I hope, the case of small destination (target) graph, typically in-memory, and
large src graph (some large database).
1000 is a guess - 10,000 is better maybe?
> 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)