Koen van der Drift
kvddrift at earthlink.net
Tue Mar 15 19:21:36 EST 2005
On Mar 15, 2005, at 10:40 AM, John Timmer wrote:
> I haven't had a chance to checkout the code you put in, but just a
> question: what's the advantage to having a scanner for digests, as
> to just having the sequence finder return the array of all site ranges?
> Just a gut response, but having one less intervening object would
> code efficiency and readability, so I'm wondering what having the
> would provide.
> In no way am I saying we shouldn't eventually create a scanner, mind
> just wondering about its use in this case.
This dates back to an early discussion, where it was suggested that it
would be nice if we have a NSScanner equivalent that deals with native
BCSequences. I think Alex made the initial interface of BCScanner, I
just started to add some implementation. See this thread:
If we use a plain NSScanner, we add two conversion steps between a
BCSequence and its string which could add some overhead:
BCSequence -> string -> NSScanner -> strings -> BCSequences.
More information about the Biococoa-dev