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:
nico 2001-01-10 20:19:23 +00:00
parent 727c59c192
commit c32e845f44
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> 2001-01-10 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Unicode.m: Fix bug in checking possible default string * Source/Unicode.m: Fix bug in checking possible default string

View file

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