commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (LANG-1177) Improve indexOf performance when called multiple times
Date Sat, 26 Oct 2019 07:44:00 GMT

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

ASF GitHub Bot logged work on LANG-1177:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Oct/19 07:43
            Start Date: 26/Oct/19 07:43
    Worklog Time Spent: 10m 
      Work Description: coveralls commented on issue #471: [LANG-1177] Added indexesOf methods
and simplified removeAllOccurences
URL: https://github.com/apache/commons-lang/pull/471#issuecomment-543509688
 
 
   
   [![Coverage Status](https://coveralls.io/builds/26564622/badge)](https://coveralls.io/builds/26564622)
   
   Coverage increased (+0.008%) to 95.372% when pulling **fb3bc68507eb97cbb8c9f81d4029ca5e4ceb47cd
on lielfr:lang-1177** into **54afdb303535a62fe00e49e3ad5100ca9fc55d1e on apache:master**.
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 334501)
    Time Spent: 1.5h  (was: 1h 20m)

> 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
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> 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