commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit Agarwal (JIRA)" <>
Subject [jira] [Commented] (LANG-1177) Improve indexOf performance when called multiple times
Date Tue, 17 Oct 2017 16:57:00 GMT


Rohit Agarwal commented on LANG-1177:

Hi, Is this still a required improvement, can I add this?.

> Improve indexOf performance when called multiple times
> ------------------------------------------------------
>                 Key: LANG-1177
>                 URL:
>             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

View raw message