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.