[infinispan-issues] [JBoss JIRA] (ISPN-7669) Evaluate DataContainer size method invocations to make sure they make sense
Tristan Tarrant (JIRA)
issues at jboss.org
Mon Mar 27 07:58:41 EDT 2017
[ https://issues.jboss.org/browse/ISPN-7669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan Tarrant updated ISPN-7669:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 9.0.0.Final
Resolution: Done
> Evaluate DataContainer size method invocations to make sure they make sense
> ---------------------------------------------------------------------------
>
> Key: ISPN-7669
> URL: https://issues.jboss.org/browse/ISPN-7669
> Project: Infinispan
> Issue Type: Bug
> Components: Core, Loaders and Stores
> Reporter: William Burns
> Assignee: William Burns
> Fix For: 9.0.0.Final
>
>
> In an attempt to improve spliterator performance we try to give it an estimate of the size. Currently this is calling DataContainer.size which in fact is anything but performant as it requires O(N) time to make sure to not count entries that are expired. We should instead call sizeIncludingExpired as this is O(1) and this is a best guess anyways, doesn't need to be exact.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list