Points to optimize

by Brian | 6th July 2009

in calcScoresForMSMS the loop which goes through the masses surrounds the loop which goes through the sequence. if we put the sequence loop on the outside this will confer some advantages:

translateNucleotideSequence won’t have to be called over and over.
the code which produces a probable MSMS spectrum for a given sequence could be called just once.

I need to make one large-enough matrix to hold all calculated internal weights of a sequence so that the system is not spending so much time on malloc and free().

On home machine with longshort.pkl the storage matrix code performed at 2:13

One Response to “Points to optimize”

  1. Jainab

    Jul 7th, 2009 :

    I think this is great. Is this 2:13 vs 4 minutes (do I remember correct?).

Leave a Reply

Name (Required)

Email (Required - will not be published)

Website

Message (Required)