You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2015/10/24 15:04:27 UTC

[jira] [Updated] (LANG-1177) Improve indexOf performance when called multiple times

     [ https://issues.apache.org/jira/browse/LANG-1177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated LANG-1177:
-----------------------
    Description: 
The indexOf methods search for a single entry in an array.
This works fine when only the first matching entry is needed, however it is not so efficient when all matches are needed (because of the setup/teardown overheads).

It might be useful to introduce an indexesOf method that returns a BitSet containing all the matches.
This can then be used in the removeAllOccurrences methods.

  was:
The indexOf methods search for a single entry in an array.
This works fine when only the first matching entry is needed, however it is not so efficient when all matches are needed because of the setup overheads.

It might be useful to introduce an indexesOf method that returns a BitSet containing all the matches.
This can then be used in the removeAllOccurrences methods.


> Improve indexOf performance when called multiple times
> ------------------------------------------------------
>
>                 Key: LANG-1177
>                 URL: https://issues.apache.org/jira/browse/LANG-1177
>             Project: Commons Lang
>          Issue Type: Improvement
>            Reporter: Sebb
>
> The indexOf methods search for a single entry in an array.
> This works fine when only the first matching entry is needed, however it is not so efficient when all matches are needed (because of the setup/teardown overheads).
> It might be useful to introduce an indexesOf method that returns a BitSet containing all the matches.
> This can then be used in the removeAllOccurrences methods.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)