mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
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:
parent
727c59c192
commit
c32e845f44
2 changed files with 18 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue