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

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

That's interesting... does it actually test as faster for you?  Have any JVMs 
finally done specific optimizations for it?
In the past, my version was always a little faster because counting down to 
zero can be slightly faster (no explicit compare needed in many instruction 
sets because the flags are often set by arithmetic operations anyway).

> 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