gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextStorage -string inefficient


From: Nicola Pero
Subject: Re: NSTextStorage -string inefficient
Date: Wed, 6 Feb 2002 13:52:16 +0000 (GMT)

Sorry to answer to myself - just a last bit to notice


> I think the O(1) time to access a character is essential for the class to
> be usable.  It's absolutely basic.

And please note that O(1) does not mean fast.  Accessing a single
character of an attributed string would still incur a couple of method
calls, and perhaps the creation of a temporary object.  That is still a
big overhead compared to having an array of unichars and accessing them
directly by index.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]