[Biococoa-dev] BCSequence

Alexander Griekspoor mek at mekentosj.com
Mon Aug 23 01:45:03 EDT 2004


Just to add a little thing I forgot:
Of course we could create a caching variable here, but that would 
involve 1) a PRIVATE string variable 2) a boolean variable that marks 
the sequence dirty whenever the sequence is edited. This in case this 
string is often requested and we don't want to recalculate it every 
time. But at the moment that would be a "performance and optimization" 
method, I would not implement that until we are in that phase and have 
an idea of where the bottleneck are in the framework. Unless we have to 
create the "marked dirty" system anyway for another reason (I could 
imagine ending up with a solid editing workflow for the features and 
ranges, which can then be used for this subject as well). But at the 
moment I would suggest creating a stringRepresentation method that 
converts the symbol based array to a string each time it's called.
Alex

Op 23-aug-04 om 7:39 heeft Alexander Griekspoor het volgende geschreven:

>>>> It's a NSSting representation of the array of Symbols, using their
>>>> 'symbolString' variable.
>>>
>>> Okay, so I'll just make sure to update it whenever a method changes 
>>> the
>>> sequence.
>>
>> Isn't that what we tried to avoid by using a string to contain a 
>> sequence? I think it's better just to recreate an NSString, when 
>> someone asks for it, instead of updating it with every edit.
>
> Indeed, this is exactly what we don't want to do!! Therefore, this 
> should NOT be a variable, rather a METHOD. Please change it to 
> something like: -(NSString *)stringRepresentation;
>
> Cheers,
> Alex
>
> *********************************************************
>                     ** Alexander Griekspoor **
> *********************************************************
>               The Netherlands Cancer Institute
>               Department of Tumorbiology (H4)
>          Plesmanlaan 121, 1066 CX, Amsterdam
>                   Tel:  + 31 20 - 512 2023
>                   Fax:  + 31 20 - 512 2029
>                   E-mail: a.griekspoor at nki.nl
> 	        AIM: mekentosj at mac.com
>               Web: http://www.mekentosj.com
>
>                  EnzymeX - To cut or not to cut
>              http://www.mekentosj.com/enzymex
>
> *********************************************************
>
>
> *********************************************************
>                      ** Alexander Griekspoor **
> *********************************************************
>                The Netherlands Cancer Institute
>                Department of Tumorbiology (H4)
>          Plesmanlaan 121, 1066 CX, Amsterdam
>                   Tel:  + 31 20 - 512 2023
>                   Fax:  + 31 20 - 512 2029
>                  AIM: mekentosj at mac.com
>                   E-mail: a.griekspoor at nki.nl
>               Web: http://www.mekentosj.com
>
>    The requirements said: Windows 2000 or better.
>    So I got a Macintosh.
>
> *********************************************************
>
>
*********************************************************
                       ** Alexander Griekspoor **
*********************************************************
                 The Netherlands Cancer Institute
                 Department of Tumorbiology (H4)
           Plesmanlaan 121, 1066 CX, Amsterdam
                     Tel:  + 31 20 - 512 2023
                     Fax:  + 31 20 - 512 2029
                    AIM: mekentosj at mac.com
                     E-mail: a.griekspoor at nki.nl
                 Web: http://www.mekentosj.com

           LabAssistant - Get your life organized!
           http://www.mekentosj.com/labassistant

*********************************************************




More information about the Biococoa-dev mailing list