[Biococoa-dev] Caching the NSArray of BCSymbol
biococoa at bioworxx.com
Wed Jul 6 04:17:13 EDT 2005
Am 06.07.2005 um 00:34 schrieb Charles Parnot:
>> One question about design of this: should we think about a
>> caching policy?
>> Maybe have a boolean ivar that allows a sequence to retain its
>> symbol array
>> at an app developer's discretion (defaults to NO, but can be
>> manually set to
>> YES in cases where an app developer knows he'll need repeated
>> access to
>> individual symbols). It would let app developers make performance
>> memory decisions, instead of leaving them at the framework level.
> I thought of that too initially, but more recently I thought:
> * if the sequence is immutable, the developer could cache it
> outside of the framework, no need to do it in the framework
> * if the sequence is mutable, caching means a lot of additional
> code to keep the array in sync for all the methods where the
> sequence changes; which probably means we should not do it now, but
> leave it for the future *if* the need arises.
Do you mean, you don't want to implement a mutable version of a
sequence class for now? I really need it, so we should build both,
mutable and immutable sequences.
More information about the Biococoa-dev