Simple trick to get quite some speed

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8551 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-01-10 20:19:23 +00:00
parent 4743653ee0
commit 9cf64f3b86
2 changed files with 18 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2001-01-10 Nicola Pero <n.pero@mi.flashnet.it>
* Source/GSAttributedString.m ([GSAttributedString -length]),
([GSMutableAttributedString -length]): Added for speed.
2001-01-10 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Unicode.m: Fix bug in checking possible default string

View file

@ -490,6 +490,13 @@ _attributesAtIndexEffectiveRange(
[super dealloc];
}
// The superclass implementation is correct but too slow
- (unsigned int) length
{
return [_textChars length];
}
@end
@ -828,6 +835,12 @@ SANITY();
[super dealloc];
}
// The superclass implementation is correct but too slow
- (unsigned int) length
{
return [_textChars length];
}
@end