<HTML>
<HEAD>
<TITLE>Re: [Biococoa-dev] Caching the NSArray of BCSymbol</TITLE>
</HEAD>
<BODY>
<BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I'm wondering to what extend we really need to cache the array of symbols, in fact when does one really need that array at all? Only if you ask a single position you get the symbol, in all other instances you don't want an array of symbols right, you want a BCSequence. So a subsequence -> a bcsequence is returned (again containing the char[]), the reverse of a BCSequence -> a bcsequence is returned etc... Want to display a sequence in a view -> the stringrepresentation of the bcsequence object is given. When would you like an array of symbols?<BR>
Alex<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>The symbols are the things that actually convey information.  Say you want to generate all the information and statistics about a sequence (complement, reverse complement, MW, melting point, etc.) for display.  Without a cached version, the sequence array would have to be recreated from data several times – doing so would probably be the single largest time cost before the info could be displayed.<BR>
<BR>
JT<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><FONT FACE="Georgia, Times New Roman"><BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial">_______________________________________________<BR>
This mind intentionally left blank<BR>
</FONT></SPAN>
</BODY>
</HTML>