[Biococoa-dev] Optimizations
Koen van der Drift
kvddrift at earthlink.net
Tue Mar 15 19:11:16 EST 2005
On Mar 15, 2005, at 4:34 PM, John Timmer wrote:
> In answer to my own question, NSSet seems to be more efficient than an
> array
> for this use. Any thoughts on using one? We could either use an
> internal,
> private ivar only for tests such as this, or change the array to a set.
> Arrays and sets seem pretty readily convertible, and all this is in the
> BCSymbol class, so this shouldn't be a big deal.
>
Where do you want to use an NSSet, as a return value for findSequence?
The advantage of the array is that the found sequences are in the
'right order'.
- Koen.
More information about the Biococoa-dev
mailing list