[ 
https://issues.apache.org/jira/browse/SOLR-390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537171
 ] 

Yonik Seeley commented on SOLR-390:
-----------------------------------

I did some further tests with mixed results...
After modifying the test program to do fill() on multiple arrays per iteration 
(and using an element from each array to try and prevent any dead code 
elimination), the benefit of the inlined loop vanishes (sneaky hotspot). 
Sometimes the Arrays.fill() version was faster, and sometimes it wasn't.  So 
perhaps a real test is needed here.



> HashDocSet initialization of internal array is not efficient
> ------------------------------------------------------------
>
>                 Key: SOLR-390
>                 URL: https://issues.apache.org/jira/browse/SOLR-390
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>            Reporter: John Wang
>
> HashDocSet initializes the internal array but iterating it instead of using 
> Arrays.fill which is much faster. Patch included

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to