Details
-
Type: Improvement
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 2.11.0
-
Component/s: Efficiency, jalview-j2s
-
Labels:
-
Epic Link:
Description
The jalview.analysis.AAFrequency and Conservation routines all involve operations that are expensive in Javascript:
1. minimise object creation and avoid any object creations in loops.
2. use fixed length arrays rather than generic containers where possible.
3. use temporary variables for storing lengths/etc for conditionals in loops (even for arrays, since array.length is a function in javascript and is not optimised out).
4. expensive ops might need look up tables...
1. minimise object creation and avoid any object creations in loops.
2. use fixed length arrays rather than generic containers where possible.
3. use temporary variables for storing lengths/etc for conditionals in loops (even for arrays, since array.length is a function in javascript and is not optimised out).
4. expensive ops might need look up tables...