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

width of Alignment should be cached for performance

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.10.2, 2.10.2b1, 2.10.3
    • Fix Version/s: None
    • Component/s: Datamodel
    • Labels:
      None

      Description

      Alignment::getWidth() is called frequently across the Jalview code base. Each time it calculates the width of the alignment by looping over every sequence in the alignment and checking its length against the current maximum length. This calculation can cause a significant performance hit (have seen in profiler) and could be mitigated by caching the alignment width and updating when sequences are changed.

        Attachments

          Activity

            People

            Assignee:
            jprocter James Procter
            Reporter:
            kmourao Kira MourĂ£o
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: