Some tuning

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6884 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-07-07 06:05:21 +00:00
parent b92af21eb0
commit bfb4ddeb88
5 changed files with 67 additions and 18 deletions

View file

@ -209,8 +209,13 @@ printf("oneway %d\n", _F_ONEWAY);
[NSConnection setDebug: 0];
[NSDistantObject setDebug: 0];
[NSPort setDebug: 0];
for (j = 0; j < 10000; j++)
for (i = 0; i < 10000; i++)
{
k = [p count];
for (j = 0; j < k; j++)
{
id remote_peer_obj = [p objectAt: j];
}
[p echoObject: localObj];
}

View file

@ -50,7 +50,10 @@
}
- objectAt: (unsigned)i
{
return [the_array objectAtIndex: i];
if (i < [the_array count])
return [the_array objectAtIndex: i];
else
return nil;
}
- print: (const char *)msg
{