| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Dimanche, septembre 30, 2001, at 05:37 , Rosyna wrote:
for (i=0;i<5000;i++)
[[instance URL] path];
You should take a look to NSAutoreleasePool.
Try something like that :
for (int i = 0; i < 100000; ++ i)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
[[instance URL] path];
[pool release];
}
Or :
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
for (int i = 0; i < 100000; ++ i)
{
[[instance URL] path];
if (i % 100)
{
[pool release];
pool = [[NSAutoreleasePool alloc] init];
}
}
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.