mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-21 02:41:07 +00:00
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:
parent
9f29820b2b
commit
86327d2947
1 changed files with 4 additions and 7 deletions
11
SQLClient.m
11
SQLClient.m
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue