Minor efficiency improvement sizing records for cache

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@24958 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2007-04-01 07:03:43 +00:00
parent 9f29820b2b
commit 86327d2947

View file

@ -465,13 +465,10 @@ static Class rClass = 0;
- (unsigned) sizeInBytes: (NSMutableSet*)exclude
{
if ([exclude member: self] != nil)
unsigned size = [super sizeInBytes: exclude];
if (size > 0)
{
return 0;
}
else
{
unsigned size = [super sizeInBytes: exclude];
unsigned pos;
unsigned count = [self count];
id vals[count];
@ -481,8 +478,8 @@ static Class rClass = 0;
{
size += [vals[pos] sizeInBytes: exclude];
}
return size;
}
return size;
}
@end