Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-2526

SequenceCursor for more efficient Sequence.findPosition, findIndex

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.3
    • Component/s: Efficiency
    • Labels:

      Description

      Sequence.findPosition(i) locates the sequence position for a column position.
      It does this by counting non-gapped positions from char[0] to char[i-1].

      If the calling code is iterating over columns, this could be made much more efficient by 'remembering' the last column/position e.g. in an iterator.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gmungoc Mungo Carstairs
              Reporter:
              gmungoc Mungo Carstairs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: