[Biococoa-dev] Optimizations

Alexander Griekspoor mek at mekentosj.com
Tue Sep 7 02:41:59 EDT 2004


This is impressive stuff John, well done! My experience with many of 
the CF classes is a drama, but I might start looking at it as well.
Where speed is a bottleneck, I have absolutely no problem with these 
kind of optimizations in internal implementations. I do propose to add 
some extra lines of comments though, to describe a bit what you do and 
why you choose to use the CF classes there (for poor soles like me ;-)
Alex

Op 6-sep-04 om 22:30 heeft John Timmer het volgende geschreven:

> Replying to myself here -
>
> Simply taking one of the methods (isRepresentedBy:) from 
> BCNucleotideDNA
> that's used heavily in BCCodon, and changing this
>
>     return [representedBy containsObject: entry];
>
> To this
>
>     return CFArrayContainsValue ( representedBy, CFRangeMake( 0,
> CFArrayGetCount ( representedBy  )), entry) ;
>
>
> Drops ObjC_msgSend from the top processor user, replacing it with 
> CFEqual.
> Times drop accordingly.  Given that, it's probably worth going back and
> looking for places we can replace an NSArray method with its CFArray
> counterpart.
>
> If someone actually intends to do so on a specific file, let me know;
> otherwise, I'll work on this on the airplane.
>
> Cheers,
>
> John
>
> _______________________________________________
> This mind intentionally left blank
>
>
> _______________________________________________
> Biococoa-dev mailing list
> Biococoa-dev at bioinformatics.org
> https://bioinformatics.org/mailman/listinfo/biococoa-dev
>
>
**************************************************************
                         ** 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

MacOS X: The power of UNIX with the simplicity of the Mac

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




More information about the Biococoa-dev mailing list