<HTML>
<HEAD>
<TITLE>Re: [Biococoa-dev] BCSequenceFactory</TITLE>
</HEAD>
<BODY>
<BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
The last line (just from curiosity...) is a non-related question about the CF usage. I fully understand that an enumerator is slower than looping through an array by hand, my question is however would: <BR>
CFIndex loopCounter; <BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><FONT FACE="Georgia, Times New Roman"> <FONT COLOR="#760F50">for</FONT> ( loopCounter = <FONT COLOR="#0000FF">0</FONT> ; loopCounter < aLimit ; loopCounter++ ) { <BR>
aSymbol = (BCSymbol *)CFArrayGetValueAtIndex( (CFArrayRef) theContents, loopCounter); <BR>
<FONT COLOR="#760F50">if</FONT> ( aSymbol == nullSymbol ) <BR>
altCount++; <BR>
} <BR>
<BR>
be really faster than the cocoa equivalent: <BR>
int loopCounter; <BR>
<FONT COLOR="#760F50">for</FONT> ( loopCounter = <FONT COLOR="#0000FF">0</FONT> ; loopCounter < aLimit ; loopCounter++ ) { <BR>
aSymbol = [theContents objectAtIndex: loopCounter]; <BR>
<FONT COLOR="#760F50">if</FONT> ( aSymbol == nullSymbol ) <BR>
altCount++; <BR>
} <BR>
<BR>
</FONT><FONT FACE="Verdana, Helvetica, Arial">I have my doubts.... (and it definitely looks better!) <BR>
Cheers, <BR>
Alex <BR>
</FONT></SPAN></BLOCKQUOTE><SPAN STYLE='font-size:12.0px'><FONT FACE="Verdana, Helvetica, Arial"><BR>
When I did code profiling, the number of ObjC runtime calls went down, without a corresponding increase in CoreFoundation. My assumption is that this would lower the total time a bit, but I’ve not gone back and confirmed that. This looks like a great chance to test that, because I agree that the readability of the later is much better.<BR>
<BR>
Maybe I’ll have info on that by tomorrow....<BR>
<BR>
JT<BR>
<BR>
<BR>
_______________________________________________<BR>
This mind intentionally left blank<BR>
</FONT></SPAN>
</BODY>
</HTML>