[
https://issues.apache.org/jira/browse/SOLR-12723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16603261#comment-16603261
]
ASF subversion and git services commented on SOLR-12723:
--------------------------------------------------------
Commit 659616318d08f59e6e59b16b899a343b033fbe29 in lucene-solr's branch
refs/heads/branch_7x from Andrzej Bialecki
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6596163 ]
SOLR-12723: Reduce object creation in HashBasedRouter.
> Reduce object creation in HashBasedRouter
> -----------------------------------------
>
> Key: SOLR-12723
> URL: https://issues.apache.org/jira/browse/SOLR-12723
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Andrzej Bialecki
> Assignee: Andrzej Bialecki
> Priority: Major
> Fix For: 7.5
>
> Attachments: SOLR-12723.patch
>
>
> When the default {{CompositeIdRouter}} is used it calls
> {{HashBasedRouter.hashToSlice}} method for every update, which obtains a
> collection of active slices from the current {{DocCollection}} and then
> iterates over it checking what range contains the document's id hash.
> Each time this creates a new iterator, which is wasteful - a much lightweight
> approach would be to construct a {{Slice[]}} when {{DocCollection}} is
> constructed and use indexed access to this array.
> This change has especially visible impact on simulator performance for large
> scale tests, where other costs are not present.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]