commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liel Fridman (Jira)" <j...@apache.org>
Subject [jira] [Commented] (LANG-1177) Improve indexOf performance when called multiple times
Date Tue, 08 Oct 2019 16:33:00 GMT

    [ https://issues.apache.org/jira/browse/LANG-1177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16947037#comment-16947037
] 

Liel Fridman commented on LANG-1177:
------------------------------------

Hi.

Can I work on this one?

Thanks!

> 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
>            Priority: Major
>
> 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
(v8.3.4#803005)

Mime
View raw message