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

optimise calculations triggered by interactive operations

    XMLWordPrintable

    Details

      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...

        Attachments

          Activity

            People

            Assignee:
            jprocter James Procter
            Reporter:
            jprocter James Procter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: